Software /
code /
prosody
Diff
plugins/mod_posix.lua @ 9927:1460c4966262
loggingmanager, mod_posix: Move syslog to core, fixes #541 (in a way)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 26 Mar 2019 14:48:21 +0000 |
parent | 9763:982529dd0bed |
child | 9928:d92ab8c8006a |
line wrap: on
line diff
--- a/plugins/mod_posix.lua Tue Mar 26 13:54:14 2019 +0000 +++ b/plugins/mod_posix.lua Tue Mar 26 14:48:21 2019 +0000 @@ -113,19 +113,6 @@ end end -local syslog_opened; -function syslog_sink_maker(config) -- luacheck: ignore 212/config - if not syslog_opened then - pposix.syslog_open("prosody", module:get_option_string("syslog_facility")); - syslog_opened = true; - end - local syslog = pposix.syslog_log; - return function (name, level, message, ...) - syslog(level, name, format(message, ...)); - end; -end -require "core.loggingmanager".register_sink_type("syslog", syslog_sink_maker); - local daemonize = module:get_option("daemonize", prosody.installed); local function remove_log_sinks()