aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-05-31 17:01:22 +0200
committerKim Alvefur <zash@zash.se>2019-05-31 17:01:22 +0200
commit4c7de2595bc229710b3985f96bea96a25c053300 (patch)
tree3d273a2c7ac9c411f2e21118863246597a545c3f
parent3eae084852f01a9ba0c99daf063a17435ee87995 (diff)
downloadprosody-4c7de2595bc229710b3985f96bea96a25c053300.tar.gz
prosody-4c7de2595bc229710b3985f96bea96a25c053300.zip
prosody: Log shutdown reason
-rwxr-xr-xprosody1
1 files changed, 1 insertions, 0 deletions
diff --git a/prosody b/prosody
index 204fb36d..f0061bf1 100755
--- a/prosody
+++ b/prosody
@@ -90,6 +90,7 @@ 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");