Software /
code /
prosody-modules
Annotate
mod_log_mark/mod_log_mark.lua @ 2030:66156e4d5274
mod_mam: This was meant to be a debug message
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 22 Jan 2016 16:04:32 +0100 |
parent | 1869:02390829df1a |
child | 2173:d15df55f0a63 |
rev | line source |
---|---|
1869
02390829df1a
mod_log_mark: Module that sends a line to the log once per minute
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1 local log = _G.log; |
02390829df1a
mod_log_mark: Module that sends a line to the log once per minute
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 |
02390829df1a
mod_log_mark: Module that sends a line to the log once per minute
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
3 module:add_timer(60-os.date("%S"), function () |
02390829df1a
mod_log_mark: Module that sends a line to the log once per minute
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
4 log("info", "-- MARK --"); |
02390829df1a
mod_log_mark: Module that sends a line to the log once per minute
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
5 return 60; |
02390829df1a
mod_log_mark: Module that sends a line to the log once per minute
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
6 end); |