Mercurial > prosody-modules
diff mod_log_ringbuffer/mod_log_ringbuffer.lua @ 4219:b3dd77f2d0d7
mod_log_ringbuffer: Switch `filename` to not be interpolated, add filename_template which is
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 16 Oct 2020 18:41:15 +0100 |
parents | f917bb78ab67 |
children | d6fb9f7afaa5 |
line wrap: on
line diff
--- a/mod_log_ringbuffer/mod_log_ringbuffer.lua Fri Oct 16 18:40:29 2020 +0100 +++ b/mod_log_ringbuffer/mod_log_ringbuffer.lua Fri Oct 16 18:41:15 2020 +0100 @@ -68,7 +68,7 @@ end local function dump() - dump_buffer(buffer, get_filename(sink_config.filename)); + dump_buffer(buffer, sink_config.filename or get_filename(sink_config.filename_template)); end if sink_config.signal then