forked from I2P_Developers/i2p.i2p
Router: Log full path to wrapper.log when dumping threads
This commit is contained in:
@@ -36,7 +36,9 @@ abstract class ThreadDump {
|
||||
success = true;
|
||||
if (success) {
|
||||
Log log = context.logManager().getLog(ThreadDump.class);
|
||||
log.log(Log.CRIT, "Threads dumped to wrapper log");
|
||||
File f = new File(context.getConfigDir(), "wrapper.log");
|
||||
String loc = f.exists() ? f.getAbsolutePath() : "wrapper.log";
|
||||
log.log(Log.CRIT, "Threads dumped to " + loc);
|
||||
}
|
||||
return success;
|
||||
}
|
||||
|
Reference in New Issue
Block a user