aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-04-05 16:00:00 +0200
committerKim Alvefur <zash@zash.se>2018-04-05 16:00:00 +0200
commit100f78a8033192bde4e307779910f4e58f0dd8ec (patch)
treebc1511b444c5e1f0f1942ea90501033a4ba58045 /prosody
parentf232c3cf3d7cb3ad1463b268d3a958f594a8305f (diff)
downloadprosody-100f78a8033192bde4e307779910f4e58f0dd8ec.tar.gz
prosody-100f78a8033192bde4e307779910f4e58f0dd8ec.zip
prosody: Use prosody.log instead of _G.log because it looks nicer
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody10
1 files changed, 5 insertions, 5 deletions
diff --git a/prosody b/prosody
index 87207f4b..70d8905c 100755
--- a/prosody
+++ b/prosody
@@ -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);