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 | 7dd69c06bbc6afef880fdc26b64d806d88fce0ee (patch) | |
tree | 20386f96ef0da122f7fb1c3a5f093c0b868b2c7f /util/helpers.lua | |
parent | 71e3455f55f0ca9b25ba9ce3a9068f636773b555 (diff) | |
download | prosody-7dd69c06bbc6afef880fdc26b64d806d88fce0ee.tar.gz prosody-7dd69c06bbc6afef880fdc26b64d806d88fce0ee.zip |
util.helpers: Helper helpers to log host events
Diffstat (limited to 'util/helpers.lua')
-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 |