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
commit132dc809762a15b4c1c638ea0345bf7358caa833 (patch)
tree59af9490ce45c0e2d3c1ca10e3473f7878eaff18 /prosody
parent8ad384af08177fe49e1760128f19bacbef73b301 (diff)
downloadprosody-132dc809762a15b4c1c638ea0345bf7358caa833.tar.gz
prosody-132dc809762a15b4c1c638ea0345bf7358caa833.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);