File

mod_log_mark/mod_log_mark.lua @ 2301:d7c014f91189

mod_statistics: Add a read timeout handler that keeps the connection alive (fixes #742)
author Kim Alvefur <zash@zash.se>
date Mon, 19 Sep 2016 19:36:19 +0200
parent 2174:7be158b3376f
line wrap: on
line source

module:set_global();

local log = _G.log;

module:add_timer(60-os.date("%S"), function (now)
	log("info", "-- MARK --");
	return 90 - ((now + 30) % 60);
end);