Skip to content

Commit

Permalink
Revert "fix(imports/logger): loki indexing for varargs (#583)"
Browse files Browse the repository at this point in the history
This reverts commit 7e67b57.
  • Loading branch information
thelindat committed May 30, 2024
1 parent 8712c9b commit c59b675
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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 = {}
local values = {message = message}

-- Format the args into strings
local tags = formatTags(source, ... and string.strjoin(',', string.tostringall(...)) or nil)
Expand All @@ -264,8 +264,7 @@ if service == 'loki' then
values = {
{
timestamp,
message,
values
json.encode(values)
}
}
}
Expand Down

0 comments on commit c59b675

Please sign in to comment.