Changeset

3733:9a3d25311fd9

mod_log_json: Use filename from logging config
author Kim Alvefur <zash@zash.se>
date Sun, 03 Nov 2019 14:33:01 +0100
parents 3732:21cfbdaac767
children 3734:b8bd79c57040
files mod_log_json/mod_log_json.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_log_json/mod_log_json.lua	Thu Oct 18 15:41:52 2018 +0200
+++ b/mod_log_json/mod_log_json.lua	Sun Nov 03 14:33:01 2019 +0100
@@ -6,7 +6,7 @@
 module:set_global();
 
 local function sink_maker(config)
-	local logfile = io.open("blah.json", "a");
+	local logfile = io.open(config.filename, "a");
 	logfile:setvbuf("no");
 	return function (source, level, message, ...)
 		local args = pack(...);