Changeset

10042:4e63e28ba362

prosody: Also log status code passed to exit() Sometimes you're just too lazy to `echo $?`
author Kim Alvefur <zash@zash.se>
date Fri, 31 May 2019 18:50:34 +0200
parents 10041:c8f16fd2a5e3
children 10043:ce8e18f20693
files prosody
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosody	Fri May 31 18:50:13 2019 +0200
+++ b/prosody	Fri May 31 18:50:34 2019 +0200
@@ -95,4 +95,5 @@
 prosody.log("info", "Shutdown complete");
 
 prosody.log("debug", "Shutdown reason was: %s", prosody.shutdown_reason or "not specified");
+prosody.log("debug", "Exiting with status code: %d", prosody.shutdown_code or 0);
 os.exit(prosody.shutdown_code);