From b5fd24740b26f9cccd5af67cdb25663fbcc755b7 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Sat, 26 Oct 2024 19:45:58 +0200 Subject: [PATCH] Fix LogPlain parsing --- logging.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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