mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_posix: Pass logger name to syslog, so that sources now get logged
This commit is contained in:
parent
844700e023
commit
43e7ad6680
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue