diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-04-03 13:39:00 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-04-03 13:39:00 +0100 |
commit | d19b3947f4fd26bbd4406c221facaef08ef6633f (patch) | |
tree | 20386f96ef0da122f7fb1c3a5f093c0b868b2c7f | |
parent | 003680eaad32050fad4152544af564a0d274020b (diff) | |
download | prosody-d19b3947f4fd26bbd4406c221facaef08ef6633f.tar.gz prosody-d19b3947f4fd26bbd4406c221facaef08ef6633f.zip |
util.helpers: Helper helpers to log host events
-rw-r--r-- | util/helpers.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/helpers.lua b/util/helpers.lua index 6103a319..08b86a7c 100644 --- a/util/helpers.lua +++ b/util/helpers.lua @@ -14,6 +14,14 @@ module("helpers", package.seeall); local log = require "util.logger".init("util.debug"); +function log_host_events(host) + return log_events(prosody.hosts[host].events, host); +end + +function revert_log_host_events(host) + return revert_log_events(prosody.hosts[host].events); +end + function log_events(events, name, logger) local f = events.fire_event; if not f then |