Skip to content

Commit 99af221

Browse files
austbrbrw
authored andcommitted
(maint) Format recieved-time before translation
Previously, the received-time would be formatted by the translation library, which adds commas to the integer ``` 2022-08-24 10:38:48,975 DEBUG [qtp1365504513-29] [p.p.command] [0-1,661,362,728,961] 'configure expiration' command enqueued for new-host ``` The purpose of this received-time is to correlate it with a later log message (in which we do not include the commas) ``` 2022-08-24 10:38:48,991 INFO [cmd-proc-thread-1] [p.p.command] [0-1661362728961-1560874645000] [7 ms] 'configure expiration' command processed for new-host ``` So we now format this integer as a string to avoid additional formatting by the translation library ``` 2022-08-24 10:39:51,447 DEBUG [qtp1480434848-35] [p.p.command] [1-1661362791430] 'configure expiration' command enqueued for new-host ```
1 parent 2b3b8c8 commit 99af221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/puppetlabs/puppetdb/command.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
(maybe-send-cmd-event! cmdref ::ingested)
275275
(log/debug (trs "[{0}-{1}] ''{2}'' command enqueued for {3}"
276276
id
277-
(time/to-long received)
277+
(str (time/to-long received))
278278
command
279279
certname))))
280280
(finally

0 commit comments

Comments
 (0)