Add structured logging functionality to inventory manager
This commit is contained in:
@@ -35,6 +35,12 @@ local CRAFT_REPLY_CHANNEL = 4204
|
||||
local CONFIG_FILE = ".manager_config"
|
||||
local _loadedConfig = nil -- stored for deferred overrides (compost settings declared later)
|
||||
|
||||
-------------------------------------------------
|
||||
-- Structured logging
|
||||
-------------------------------------------------
|
||||
|
||||
local log = dofile("lib/log.lua")
|
||||
|
||||
local function loadConfig()
|
||||
if not fs.exists(CONFIG_FILE) then return end
|
||||
local f = fs.open(CONFIG_FILE, "r")
|
||||
|
||||
Reference in New Issue
Block a user