Software /
code /
prosody-modules
Comparison
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 |
parent | 4218:f917bb78ab67 |
child | 4225:d6fb9f7afaa5 |
comparison
equal
deleted
inserted
replaced
4218:f917bb78ab67 | 4219:b3dd77f2d0d7 |
---|---|
66 elseif timestamps then | 66 elseif timestamps then |
67 timestamps = timestamps .. " "; | 67 timestamps = timestamps .. " "; |
68 end | 68 end |
69 | 69 |
70 local function dump() | 70 local function dump() |
71 dump_buffer(buffer, get_filename(sink_config.filename)); | 71 dump_buffer(buffer, sink_config.filename or get_filename(sink_config.filename_template)); |
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 |