Software /
code /
prosody
Changeset
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 |
parents | 7301:995777582044 |
children | 7304:b6adb7c1a645 7305:c02e3d8f23fc |
files | core/modulemanager.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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];