Browse Source

log stacktrace when forcibly terminating thread

tags/2.0.1
Jonathan Cobb 4 years ago
parent
commit
c99a437ba4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/java/org/cobbzilla/util/daemon/ZillaRuntime.java

+ 1
- 1
src/main/java/org/cobbzilla/util/daemon/ZillaRuntime.java View File

@@ -60,7 +60,7 @@ public class ZillaRuntime {
sleep(100, "terminate: waiting for thread to exit: "+thread); sleep(100, "terminate: waiting for thread to exit: "+thread);
} }
if (thread.isAlive()) { if (thread.isAlive()) {
log.warn("terminate: thread did not respond to interrupt, killing it: "+thread);
log.warn("terminate: thread did not respond to interrupt, killing: "+thread+" from "+stacktrace());
thread.stop(); thread.stop();
return false; return false;
} else { } else {


Loading…
Cancel
Save