Software /
code /
prosody-modules
Changeset
4215:86f8ece24029
mod_log_ringbuffer: Update default filename to include data path
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 16 Oct 2020 14:25:44 +0100 |
parents | 4214:5841d54cb6c6 |
children | 4216:35b678609b79 |
files | mod_log_ringbuffer/README.markdown mod_log_ringbuffer/mod_log_ringbuffer.lua |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_log_ringbuffer/README.markdown Fri Oct 16 14:23:10 2020 +0100 +++ b/mod_log_ringbuffer/README.markdown Fri Oct 16 14:25:44 2020 +0100 @@ -52,7 +52,8 @@ `filename` : The name of the file to dump logs to when triggered. The filename may - contain a number of variables, described below. + contain a number of variables, described below. Defaults to + `"{paths.data}/ringbuffer-logs-{pid}-{count}.log"`. Only one of the following triggers may be specified:
--- a/mod_log_ringbuffer/mod_log_ringbuffer.lua Fri Oct 16 14:23:10 2020 +0100 +++ b/mod_log_ringbuffer/mod_log_ringbuffer.lua Fri Oct 16 14:25:44 2020 +0100 @@ -10,7 +10,7 @@ local os_date = os.date; -local default_filename_template = "ringbuffer-logs-{pid}-{count}.log"; +local default_filename_template = "{paths.data}/ringbuffer-logs-{pid}-{count}.log"; local render_filename = require "util.interpolation".new("%b{}", function (s) return s; end, { yyyymmdd = function (t) return os_date("%Y%m%d", t);