aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-03-19 16:35:43 +0100
committerKim Alvefur <zash@zash.se>2016-03-19 16:35:43 +0100
commit487f77d6ef7b64fccb2bb73a0710c6e669399153 (patch)
tree36a303c8c1e57771f870ede1cdb2dc27cb2374c4 /core/modulemanager.lua
parentf739ed2c46827cca1b0b7af08320584886e76283 (diff)
downloadprosody-487f77d6ef7b64fccb2bb73a0710c6e669399153.tar.gz
prosody-487f77d6ef7b64fccb2bb73a0710c6e669399153.zip
modulemanager: Silence log message about attempts to load already loaded modules for shared modules
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 65542f9a..7bed1795 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -125,7 +125,9 @@ local function do_load_module(host, module_name, state)
end
if modulemap[host][module_name] then
- log("debug", "%s is already loaded for %s, so not loading again", module_name, host);
+ if not modulemap["*"][module_name] then
+ log("debug", "%s is already loaded for %s, so not loading again", module_name, host);
+ end
return nil, "module-already-loaded";
elseif modulemap["*"][module_name] then
local mod = modulemap["*"][module_name];