aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-05-31 18:50:13 +0200
committerKim Alvefur <zash@zash.se>2019-05-31 18:50:13 +0200
commitc3c7aaae0f69ab4b2dfcef94f6224f46613fb191 (patch)
tree59af9490ce45c0e2d3c1ca10e3473f7878eaff18 /prosody
parent4c7de2595bc229710b3985f96bea96a25c053300 (diff)
downloadprosody-c3c7aaae0f69ab4b2dfcef94f6224f46613fb191.tar.gz
prosody-c3c7aaae0f69ab4b2dfcef94f6224f46613fb191.zip
prosody: Log shutdown reason (in past tense) as the very last thing
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosody b/prosody
index f0061bf1..ced319e0 100755
--- a/prosody
+++ b/prosody
@@ -90,9 +90,9 @@ end
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);