Mercurial > prosody-modules
comparison mod_log_ringbuffer/mod_log_ringbuffer.lua @ 4218:f917bb78ab67
mod_log_ringbuffer: Fix incorrect parameter name
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 16 Oct 2020 18:40:29 +0100 |
parents | 86f8ece24029 |
children | b3dd77f2d0d7 |
comparison
equal
deleted
inserted
replaced
4217:983565f42063 | 4218:f917bb78ab67 |
---|---|
72 end | 72 end |
73 | 73 |
74 if sink_config.signal then | 74 if sink_config.signal then |
75 require "util.signal".signal(sink_config.signal, dump); | 75 require "util.signal".signal(sink_config.signal, dump); |
76 elseif sink_config.event then | 76 elseif sink_config.event then |
77 module:hook_global(sink_config.global_event, dump); | 77 module:hook_global(sink_config.event, dump); |
78 end | 78 end |
79 | 79 |
80 return function (name, level, message, ...) | 80 return function (name, level, message, ...) |
81 buffer:write(format("%s%s\t%s\t%s\n", timestamps and os_date(timestamps) or "", name, level, format(message, ...))); | 81 buffer:write(format("%s%s\t%s\t%s\n", timestamps and os_date(timestamps) or "", name, level, format(message, ...))); |
82 end; | 82 end; |