Router: Log full path to wrapper.log when dumping threads

This commit is contained in:
zzz
2016-02-25 14:18:26 +00:00
parent d9a7dc0233
commit a79b25d7b1

View File

@@ -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;
}