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