mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 06:37:37 +03:00
Small logging adjustment for mod_posix
This commit is contained in:
parent
2b0083790b
commit
8d26c23a92
1 changed files with 1 additions and 3 deletions
|
@ -35,15 +35,13 @@ if not config_get("*", "core", "no_daemonize") then
|
||||||
log("info", "Daemonized to pid %d", ret);
|
log("info", "Daemonized to pid %d", ret);
|
||||||
os.exit(0);
|
os.exit(0);
|
||||||
else
|
else
|
||||||
log("info", "Successfully daemonized");
|
|
||||||
|
|
||||||
if logwriter then
|
if logwriter then
|
||||||
local ok, ret = logger_set(logwriter);
|
local ok, ret = logger_set(logwriter);
|
||||||
if not ok then
|
if not ok then
|
||||||
log("error", "Couldn't set new log output: %s", ret);
|
log("error", "Couldn't set new log output: %s", ret);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
log("info", "Successfully daemonized");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
module:add_event_hook("server-starting", daemonize_server);
|
module:add_event_hook("server-starting", daemonize_server);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue