From e5c639c77946f746fd769ed2b274b91843fba306 Mon Sep 17 00:00:00 2001 From: ancientmarinerdev Date: Tue, 8 Nov 2022 22:54:16 +0000 Subject: [PATCH] Logging improvements --- mods/CORE/mcl_util/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/CORE/mcl_util/init.lua b/mods/CORE/mcl_util/init.lua index 83cc79d22a..4684234e5e 100644 --- a/mods/CORE/mcl_util/init.lua +++ b/mods/CORE/mcl_util/init.lua @@ -24,12 +24,12 @@ end local LOGGING_ON = minetest.settings:get_bool("mcl_logging_default",false) local LOG_MODULE = "[MCL2]" -function mcl_util.mcl_log (message, module) +function mcl_util.mcl_log (message, module, bypass_default_logger) local selected_module = LOG_MODULE if module then selected_module = module end - if LOGGING_ON and message then + if (bypass_default_logger or LOGGING_ON) and message then minetest.log(selected_module .. " " .. message) end end