Add log level configuration to enhance logging flexibility
This commit is contained in:
@@ -72,6 +72,8 @@ local function loadConfig()
|
|||||||
if cfg.orderChannel then ORDER_CHANNEL = cfg.orderChannel end
|
if cfg.orderChannel then ORDER_CHANNEL = cfg.orderChannel end
|
||||||
if cfg.craftChannel then CRAFT_CHANNEL = cfg.craftChannel end
|
if cfg.craftChannel then CRAFT_CHANNEL = cfg.craftChannel end
|
||||||
if cfg.craftReplyChannel then CRAFT_REPLY_CHANNEL = cfg.craftReplyChannel 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)
|
log.info("CONFIG", "Loaded from %s", CONFIG_FILE)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user