Software /
code /
prosody
Comparison
core/modulemanager.lua @ 6361:f12889981ece
modulemanager: Reduce warning to debug level message about modules already being loaded, it's probably just module:depends()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 27 Aug 2014 10:46:22 +0200 |
parent | 6034:ee14da71d3fc |
child | 6367:769a3577dd85 |
comparison
equal
deleted
inserted
replaced
6360:ffcd3992a40c | 6361:f12889981ece |
---|---|
121 if not modulemap[host] then | 121 if not modulemap[host] then |
122 modulemap[host] = hosts[host].modules; | 122 modulemap[host] = hosts[host].modules; |
123 end | 123 end |
124 | 124 |
125 if modulemap[host][module_name] then | 125 if modulemap[host][module_name] then |
126 log("warn", "%s is already loaded for %s, so not loading again", module_name, host); | 126 log("debug", "%s is already loaded for %s, so not loading again", module_name, host); |
127 return nil, "module-already-loaded"; | 127 return nil, "module-already-loaded"; |
128 elseif modulemap["*"][module_name] then | 128 elseif modulemap["*"][module_name] then |
129 local mod = modulemap["*"][module_name]; | 129 local mod = modulemap["*"][module_name]; |
130 if module_has_method(mod, "add_host") then | 130 if module_has_method(mod, "add_host") then |
131 local _log = logger.init(host..":"..module_name); | 131 local _log = logger.init(host..":"..module_name); |