diff --git a/logging.lua b/logging.lua index 87d60e0..df0b22d 100644 --- a/logging.lua +++ b/logging.lua @@ -105,9 +105,9 @@ function RecursionSentinel.remove(knownTables, value) end local function cloneNonRecursive(inValue, sentinels) - if type(inValue) == "table" then + local value = LogPlain.getValue(inValue) + if type(value) == "table" then local wrapLogPlain = LogPlain.is(inValue) and function(v) return LogPlain.of(v, inValue.deep) end or function(v) return v end - local value = LogPlain.getValue(inValue) if RecursionSentinel.isKnown(sentinels, value) then return wrapLogPlain(RecursionSentinel.getSentinel(sentinels, value)) end