shutdown hook logging

This commit is contained in:
zzz
2011-06-14 18:48:09 +00:00
parent 95189c8f53
commit d4ca9ca36d

View File

@@ -616,6 +616,8 @@ public class Router {
public void rebuildNewIdentity() {
killKeys();
for (Runnable task : _context.getShutdownTasks()) {
if (_log.shouldLog(Log.WARN))
_log.warn("Running shutdown task " + task.getClass());
try {
task.run();
} catch (Throwable t) {