Skip to content

Commit

Permalink
fix(imports/logger): loki indexing for varargs (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaLife authored May 20, 2024
1 parent c4ad7da commit 7e67b57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions imports/logger/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -264,7 +264,8 @@ if service == 'loki' then
values = {
{
timestamp,
json.encode(values)
message,
values
}
}
}
Expand Down

0 comments on commit 7e67b57

Please sign in to comment.