aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);