fix(logger): Fix bad argument #2 to strsplit (#125)

Only Loki logging was affected. When no tags were given and the source is console the convertDDTagsToKVP break because of the nil value.
This commit is contained in:
Róbert Nagy
2022-10-15 04:04:14 +02:00
committed by GitHub
parent 4f71595122
commit a4d553cbb1

View File

@@ -143,7 +143,7 @@ if service == 'loki' then
local values = {message = message}
-- 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 {})
local tagsTable = convertDDTagsToKVP(tags)
-- Concatenates tags kvp table to the values table