give the shutdown hook thread a name
This commit is contained in:
@ -438,8 +438,14 @@ public class LogManager {
|
|||||||
_writer.flushRecords();
|
_writer.flushRecords();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static int __id = 0;
|
||||||
private class ShutdownHook extends Thread {
|
private class ShutdownHook extends Thread {
|
||||||
|
private int _id;
|
||||||
|
public ShutdownHook() {
|
||||||
|
_id = ++__id;
|
||||||
|
}
|
||||||
public void run() {
|
public void run() {
|
||||||
|
setName("Log " + _id + " shutdown ");
|
||||||
shutdown();
|
shutdown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user