mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(imports/logger): loki indexing for varargs (#583)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user