From 14810dd3617d6d780c50b4ee0548b04f329f0173 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 19 Mar 2016 16:35:43 +0100 Subject: modulemanager: Silence log message about attempts to load already loaded modules for shared modules --- core/modulemanager.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; -- cgit v1.2.3