Revert "fix(imports/logger): loki indexing for varargs (#583)"

This reverts commit 7e67b57e2d.
This commit is contained in:
Linden
2024-05-30 22:54:50 +10:00
parent 8712c9b0c9
commit c59b675efa

View File

@@ -243,7 +243,7 @@ if service == 'loki' then
local timestamp = ('%s000000000'):format(os.time(os.date('*t'))) local timestamp = ('%s000000000'):format(os.time(os.date('*t')))
-- Initializes values table with the message -- Initializes values table with the message
local values = {} local values = {message = message}
-- Format the args into strings -- Format the args into strings
local tags = formatTags(source, ... and string.strjoin(',', string.tostringall(...)) or nil) local tags = formatTags(source, ... and string.strjoin(',', string.tostringall(...)) or nil)
@@ -264,8 +264,7 @@ if service == 'loki' then
values = { values = {
{ {
timestamp, timestamp,
message, json.encode(values)
values
} }
} }
} }