Changeset

10040:e8153d49caaa

prosody: Log shutdown reason
author Kim Alvefur <zash@zash.se>
date Fri, 31 May 2019 17:01:22 +0200
parents 10039:e90c9857a880
children 10041:c8f16fd2a5e3
files prosody
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosody	Fri May 31 00:04:05 2019 +0200
+++ b/prosody	Fri May 31 17:01:22 2019 +0200
@@ -90,6 +90,7 @@
 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");