diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-04-08 16:57:05 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-04-08 16:57:05 +0100 |
commit | 64d0e35dd37bd146cf920a6cbd8db899e674f532 (patch) | |
tree | b1e83d29f5ca983dd587fb982b18d173265f3863 | |
parent | cacb08e2a8100fee1c256a48be20eb27e247edc5 (diff) | |
download | prosody-64d0e35dd37bd146cf920a6cbd8db899e674f532.tar.gz prosody-64d0e35dd37bd146cf920a6cbd8db899e674f532.zip |
mod_posix: Pass logger name to syslog, so that sources now get logged
-rw-r--r-- | plugins/mod_posix.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua index e871e5cf..96a05d73 100644 --- a/plugins/mod_posix.lua +++ b/plugins/mod_posix.lua @@ -118,9 +118,9 @@ function syslog_sink_maker(config) local syslog, format = pposix.syslog_log, string.format; return function (name, level, message, ...) if ... then - syslog(level, format(message, ...)); + syslog(level, name, format(message, ...)); else - syslog(level, message); + syslog(level, name, message); end end; end |