projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1f09e2
)
mod_posix: Pass logger name to syslog, so that sources now get logged
author
Matthew Wild
<mwild1@gmail.com>
Mon, 8 Apr 2013 15:57:05 +0000
(16:57 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Mon, 8 Apr 2013 15:57:05 +0000
(16:57 +0100)
plugins/mod_posix.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_posix.lua
b/plugins/mod_posix.lua
index e871e5cf4d8c9ab825f6b13b0eb8d1a5a95fe95a..96a05d73232acb50d473d755eff5f871aef4b9f3 100644
(file)
--- 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