diff options
author | Kim Alvefur <zash@zash.se> | 2018-04-05 16:00:00 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-04-05 16:00:00 +0200 |
commit | 9ec7e4d6a823a1861fbde5ce7f59e59497c63770 (patch) | |
tree | bc1511b444c5e1f0f1942ea90501033a4ba58045 /prosody | |
parent | cd6194c0d88565df5963a876d1b81e10f001597d (diff) | |
download | prosody-9ec7e4d6a823a1861fbde5ce7f59e59497c63770.tar.gz prosody-9ec7e4d6a823a1861fbde5ce7f59e59497c63770.zip |
prosody: Use prosody.log instead of _G.log because it looks nicer
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -65,10 +65,10 @@ local function loop() return "quitting"; end - log("error", "Top-level error, please report:\n%s", tostring(err)); + prosody.log("error", "Top-level error, please report:\n%s", tostring(err)); local traceback = debug.traceback("", 2); if traceback then - log("error", "%s", traceback); + prosody.log("error", "%s", traceback); end prosody.events.fire_event("very-bad-error", {error = err, traceback = traceback}); @@ -82,15 +82,15 @@ local function loop() end local function cleanup() - log("info", "Shutdown status: Cleaning up"); + prosody.log("info", "Shutdown status: Cleaning up"); prosody.events.fire_event("server-cleanup"); end loop(); -log("info", "Shutting down..."); +prosody.log("info", "Shutting down..."); cleanup(); prosody.events.fire_event("server-stopped"); -log("info", "Shutdown complete"); +prosody.log("info", "Shutdown complete"); os.exit(prosody.shutdown_code); |