aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-12-07 03:12:56 +0000
committerMatthew Wild <mwild1@gmail.com>2008-12-07 03:12:56 +0000
commit8d26c23a92e18fb829cafe285b11b2ff2f693be7 (patch)
tree88df74a19dd584c24f0b42b7301f74031fc6b7ef
parent2b0083790b89bc9be5ba7ee1cae812bf57134b6a (diff)
downloadprosody-8d26c23a92e18fb829cafe285b11b2ff2f693be7.tar.gz
prosody-8d26c23a92e18fb829cafe285b11b2ff2f693be7.zip
Small logging adjustment for mod_posix
-rw-r--r--plugins/mod_posix.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index 8dc4c77d..7559d3ed 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -35,15 +35,13 @@ if not config_get("*", "core", "no_daemonize") then
log("info", "Daemonized to pid %d", ret);
os.exit(0);
else
- log("info", "Successfully daemonized");
-
if logwriter then
local ok, ret = logger_set(logwriter);
if not ok then
log("error", "Couldn't set new log output: %s", ret);
end
end
-
+ log("info", "Successfully daemonized");
end
end
module:add_event_hook("server-starting", daemonize_server);