diff options
author | Matthew Wild <mwild1@gmail.com> | 2019-03-26 14:48:21 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2019-03-26 14:48:21 +0000 |
commit | 2ab785fd9fc6d669b6bd0c24333dc27af86153af (patch) | |
tree | dec04f69a3ca0b8a0527ee31e08368b9c19660ba /plugins/mod_posix.lua | |
parent | e5d74b77aec0f9c63104384ef1f550d57959fbce (diff) | |
download | prosody-2ab785fd9fc6d669b6bd0c24333dc27af86153af.tar.gz prosody-2ab785fd9fc6d669b6bd0c24333dc27af86153af.zip |
loggingmanager, mod_posix: Move syslog to core, fixes #541 (in a way)
Diffstat (limited to 'plugins/mod_posix.lua')
-rw-r--r-- | plugins/mod_posix.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua index 23df4d23..8367ae9e 100644 --- a/plugins/mod_posix.lua +++ b/plugins/mod_posix.lua @@ -113,19 +113,6 @@ local function write_pidfile() 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() |