Software /
code /
prosody-modules
Comparison
mod_log_mark/mod_log_mark.lua @ 2173:d15df55f0a63
mod_log_mark: Make a global module (should only be loaded once anyways)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 08 May 2016 16:57:44 +0200 |
parent | 1869:02390829df1a |
child | 2174:7be158b3376f |
comparison
equal
deleted
inserted
replaced
2172:a347b71adb07 | 2173:d15df55f0a63 |
---|---|
1 module:set_global(); | |
2 | |
1 local log = _G.log; | 3 local log = _G.log; |
2 | 4 |
3 module:add_timer(60-os.date("%S"), function () | 5 module:add_timer(60-os.date("%S"), function () |
4 log("info", "-- MARK --"); | 6 log("info", "-- MARK --"); |
5 return 60; | 7 return 60; |