Comparison

prosody @ 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
parent 10041:c8f16fd2a5e3
child 10599:4f655918fef1
comparison
equal deleted inserted replaced
10041:c8f16fd2a5e3 10042:4e63e28ba362
93 cleanup(); 93 cleanup();
94 prosody.events.fire_event("server-stopped"); 94 prosody.events.fire_event("server-stopped");
95 prosody.log("info", "Shutdown complete"); 95 prosody.log("info", "Shutdown complete");
96 96
97 prosody.log("debug", "Shutdown reason was: %s", prosody.shutdown_reason or "not specified"); 97 prosody.log("debug", "Shutdown reason was: %s", prosody.shutdown_reason or "not specified");
98 prosody.log("debug", "Exiting with status code: %d", prosody.shutdown_code or 0);
98 os.exit(prosody.shutdown_code); 99 os.exit(prosody.shutdown_code);