# HG changeset patch # User Kim Alvefur # Date 1442937322 -7200 # Node ID 02390829df1a71f70c08b81ea00674c3e9ce22d3 # Parent d6e673f9857297a799d6127aec5473d8301da724 mod_log_mark: Module that sends a line to the log once per minute diff -r d6e673f98572 -r 02390829df1a mod_log_mark/README.markdown --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_log_mark/README.markdown Tue Sep 22 17:55:22 2015 +0200 @@ -0,0 +1,7 @@ +--- +summary: Log a message once per minute +... + +This module sends `-- MARK --` to the log once per minute. This may be +useful to give a sense of how busy the server is or see that timers are +still working. diff -r d6e673f98572 -r 02390829df1a mod_log_mark/mod_log_mark.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_log_mark/mod_log_mark.lua Tue Sep 22 17:55:22 2015 +0200 @@ -0,0 +1,6 @@ +local log = _G.log; + +module:add_timer(60-os.date("%S"), function () + log("info", "-- MARK --"); + return 60; +end);