Mercurial > prosody-hg
diff prosody @ 10041:c8f16fd2a5e3
prosody: Log shutdown reason (in past tense) as the very last thing
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 31 May 2019 18:50:13 +0200 |
| parents | e8153d49caaa |
| children | 4e63e28ba362 |
line wrap: on
line diff
--- a/prosody Fri May 31 17:01:22 2019 +0200 +++ b/prosody Fri May 31 18:50:13 2019 +0200 @@ -90,9 +90,9 @@ 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);
