1
0
Fork 0

Logging improvements

mcl-structures-fixes
ancientmarinerdev 2022-11-08 22:54:16 +00:00 committed by cora
parent ff0fea8978
commit e5c639c779
1 changed files with 2 additions and 2 deletions

View File

@ -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