Changeset

10041:c8f16fd2a5e3

prosody: Log shutdown reason (in past tense) as the very last thing
author Kim Alvefur <zash@zash.se>
date Fri, 31 May 2019 18:50:13 +0200 (2019-05-31)
parents 10040:e8153d49caaa
children 10042:4e63e28ba362
files prosody
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);