# HG changeset patch # User Matthew Wild # Date 1602854744 -3600 # Node ID 86f8ece24029e07a7f4a0b60eb8ef05e90f7623a # Parent 5841d54cb6c643839200d94ec5b45b0a098a4300 mod_log_ringbuffer: Update default filename to include data path diff -r 5841d54cb6c6 -r 86f8ece24029 mod_log_ringbuffer/README.markdown --- 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: diff -r 5841d54cb6c6 -r 86f8ece24029 mod_log_ringbuffer/mod_log_ringbuffer.lua --- 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);