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

This commit is contained in:
Mirco T
2024-05-20 21:47:47 +02:00
committed by GitHub
parent c4ad7da3d2
commit 7e67b57e2d

View File

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