aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_posix.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-04-08 16:57:05 +0100
committerMatthew Wild <mwild1@gmail.com>2013-04-08 16:57:05 +0100
commit9c5ea7b6a8ef13f87fbcd0554ff8a0b712c4b3a7 (patch)
treeb1e83d29f5ca983dd587fb982b18d173265f3863 /plugins/mod_posix.lua
parent84b29550d6ef5ec3d4472e4525e7c101edaf7dbb (diff)
downloadprosody-9c5ea7b6a8ef13f87fbcd0554ff8a0b712c4b3a7.tar.gz
prosody-9c5ea7b6a8ef13f87fbcd0554ff8a0b712c4b3a7.zip
mod_posix: Pass logger name to syslog, so that sources now get logged
Diffstat (limited to 'plugins/mod_posix.lua')
-rw-r--r--plugins/mod_posix.lua4
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