mod_posix: Pass logger name to syslog, so that sources now get logged

This commit is contained in:
Matthew Wild 2013-04-08 16:57:05 +01:00
parent 844700e023
commit 43e7ad6680

View file

@ -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