Add log level configuration to enhance logging flexibility

This commit is contained in:
MayaTheShy
2026-03-22 02:03:37 -04:00
parent 50ec1ee6c2
commit 304e779fd0

View File

@@ -72,6 +72,8 @@ local function loadConfig()
if cfg.orderChannel then ORDER_CHANNEL = cfg.orderChannel end
if cfg.craftChannel then CRAFT_CHANNEL = cfg.craftChannel end
if cfg.craftReplyChannel then CRAFT_REPLY_CHANNEL = cfg.craftReplyChannel end
-- Log level
if cfg.logLevel then log.setLevel(cfg.logLevel) end
log.info("CONFIG", "Loaded from %s", CONFIG_FILE)
end