Small logging adjustment for mod_posix

This commit is contained in:
Matthew Wild 2008-12-07 03:12:56 +00:00
parent 2b0083790b
commit 8d26c23a92

View file

@ -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);