don't send 9 digits of nanosecond to victorialogs
It fails to parse. I havent investigated how many digits it will parse, but let's try 3
This commit is contained in:
@@ -56,7 +56,9 @@ Host: %s\
|
|||||||
|
|
||||||
(define-tests
|
(define-tests
|
||||||
(expect= (format-timestamp-rfc3339 "@4000000068e2f0d3257dc09b" 9)
|
(expect= (format-timestamp-rfc3339 "@4000000068e2f0d3257dc09b" 9)
|
||||||
"2025-10-05T22:26:54.628998299Z"))
|
"2025-10-05T22:26:54.628998299Z")
|
||||||
|
(expect= (format-timestamp-rfc3339 "@4000000068e2f0d3257dc09b" 3)
|
||||||
|
"2025-10-05T22:26:54.628Z"))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -65,7 +67,7 @@ Host: %s\
|
|||||||
(->
|
(->
|
||||||
(string.format
|
(string.format
|
||||||
"{%q:%q,%q:%q,%q:%q,%q:%q}\n"
|
"{%q:%q,%q:%q,%q:%q,%q:%q}\n"
|
||||||
:_time (format-timestamp-rfc3339 timestamp)
|
:_time (format-timestamp-rfc3339 timestamp 3)
|
||||||
:service service
|
:service service
|
||||||
:_msg msg
|
:_msg msg
|
||||||
:host hostname)
|
:host hostname)
|
||||||
|
Reference in New Issue
Block a user