Router: Log crashed event if old router.ping file is found at startup

This commit is contained in:
zzz
2021-01-14 09:25:21 -05:00
parent aa2ba92db8
commit 92ecc9f8e8

View File

@@ -1928,6 +1928,8 @@ public class Router implements RouterClock.ClockShiftListener {
}
if (downtime > LIVELINESS_DELAY) {
System.err.println("WARN: Old router was not shut down gracefully, deleting " + f);
if (lastWritten > 0)
_eventLog.addEvent(EventLog.CRASHED, (downtime / 60000) + " minutes ago");
f.delete();
} else {
return false;