Software /
code /
prosody
Diff
core/modulemanager.lua @ 7303:439d00063620
modulemanager: Silence log message about attempts to load already loaded modules for shared modules
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 19 Mar 2016 16:35:43 +0100 |
parent | 7163:eadbf19d0de0 |
child | 7947:24170d74b00b |
line wrap: on
line diff
--- a/core/modulemanager.lua Fri Mar 18 14:03:14 2016 +0000 +++ b/core/modulemanager.lua Sat Mar 19 16:35:43 2016 +0100 @@ -125,7 +125,9 @@ 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];