prosody: Log shutdown reason (in past tense) as the very last thing
authorKim Alvefur <zash@zash.se>
Fri, 31 May 2019 18:50:13 +0200
changeset 10045 c8f16fd2a5e3
parent 10044 e8153d49caaa
child 10046 4e63e28ba362
prosody: Log shutdown reason (in past tense) as the very last thing
prosody
--- a/prosody	Fri May 31 17:01:22 2019 +0200
+++ b/prosody	Fri May 31 18:50:13 2019 +0200
@@ -90,9 +90,9 @@
 loop();
 
 prosody.log("info", "Shutting down...");
-prosody.log("debug", "Shutdown reason is: %s", prosody.shutdown_reason or "not specified");
 cleanup();
 prosody.events.fire_event("server-stopped");
 prosody.log("info", "Shutdown complete");
 
+prosody.log("debug", "Shutdown reason was: %s", prosody.shutdown_reason or "not specified");
 os.exit(prosody.shutdown_code);