Software /
code /
prosody-modules
Comparison
mod_server_contact_info/mod_server_contact_info.lua @ 2697:d18a91c030df
mod_server_contact_info: Bump log message to info level
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 19 Apr 2017 06:38:08 +0200 |
parent | 2320:d6a3362ca256 |
child | 2772:2c59f2f0c37d |
comparison
equal
deleted
inserted
replaced
2696:404d47d2e833 | 2697:d18a91c030df |
---|---|
24 local admins = module:get_option_inherited_set("admins", {}); | 24 local admins = module:get_option_inherited_set("admins", {}); |
25 if admins:empty() then | 25 if admins:empty() then |
26 module:log("error", "No contact_info or admins set in config"); | 26 module:log("error", "No contact_info or admins set in config"); |
27 return -- Nothing to attach, so we'll just skip it. | 27 return -- Nothing to attach, so we'll just skip it. |
28 end | 28 end |
29 module:log("debug", "No contact_info in config, using admins as fallback"); | 29 module:log("info", "No contact_info in config, using admins as fallback"); |
30 contact_config = { | 30 contact_config = { |
31 admin = array.collect( admins / function(admin) return "xmpp:" .. admin; end); | 31 admin = array.collect( admins / function(admin) return "xmpp:" .. admin; end); |
32 }; | 32 }; |
33 end | 33 end |
34 | 34 |