Skip to content

Commit

Permalink
Replace default logger to error only
Browse files Browse the repository at this point in the history
  • Loading branch information
Insality committed Aug 29, 2024
1 parent e23600d commit 29218dd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions saver/saver_internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ M.empty_logger = {

---@type saver.logger
M.logger = {
trace = function(_, msg) print("TRACE: " .. msg) end,
debug = function(_, msg, data) pprint("DEBUG: " .. msg, data) end,
info = function(_, msg, data) pprint("INFO: " .. msg, data) end,
warn = function(_, msg, data) pprint("WARN: " .. msg, data) end,
error = function(_, msg, data) pprint("ERROR: " .. msg, data) end
trace = EMPTY_FUNCTION,
debug = EMPTY_FUNCTION,
info = EMPTY_FUNCTION,
warn = EMPTY_FUNCTION,
error = function(_, message, context)
pprint(message, context)
end,
}

---Contains the current game state data
Expand Down

0 comments on commit 29218dd

Please sign in to comment.