equal
deleted
inserted
replaced
127 end; |
127 end; |
128 end |
128 end |
129 require "core.loggingmanager".register_sink_type("syslog", syslog_sink_maker); |
129 require "core.loggingmanager".register_sink_type("syslog", syslog_sink_maker); |
130 |
130 |
131 local daemonize = module:get_option("daemonize", prosody.installed); |
131 local daemonize = module:get_option("daemonize", prosody.installed); |
132 if daemonize == nil then |
|
133 local no_daemonize = module:get_option("no_daemonize"); --COMPAT w/ 0.5 |
|
134 daemonize = not no_daemonize; |
|
135 if no_daemonize ~= nil then |
|
136 module:log("warn", "The 'no_daemonize' option is now replaced by 'daemonize'"); |
|
137 module:log("warn", "Update your config from 'no_daemonize = %s' to 'daemonize = %s'", tostring(no_daemonize), tostring(daemonize)); |
|
138 end |
|
139 end |
|
140 |
132 |
141 local function remove_log_sinks() |
133 local function remove_log_sinks() |
142 local lm = require "core.loggingmanager"; |
134 local lm = require "core.loggingmanager"; |
143 lm.register_sink_type("console", nil); |
135 lm.register_sink_type("console", nil); |
144 lm.register_sink_type("stdout", nil); |
136 lm.register_sink_type("stdout", nil); |