File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
iohk-monitoring/src/Cardano/BM/Backend Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -420,20 +420,20 @@ renderJsonMsg r =
420
420
m' = encodeToLazyText $ trimTime $ K. itemJson (verbosity r) li'
421
421
in (fromIntegral $ TL. length m', m')
422
422
423
- -- keep only two digits for the fraction of seconds
423
+ -- keep only three digits for the fraction of seconds
424
424
trimTime :: Value -> Value
425
425
trimTime (Object o) = Object . runIdentity $ KeyMap. alterF
426
- (\ a -> Identity $ keep2Decimals <$> a)
426
+ (\ a -> Identity $ keep3Decimals <$> a)
427
427
" at"
428
428
o
429
429
where
430
- keep2Decimals :: Value -> Value
431
- keep2Decimals v = case fromJSON v of
430
+ keep3Decimals :: Value -> Value
431
+ keep3Decimals v = case fromJSON v of
432
432
Success (utct :: UTCTime ) ->
433
433
String $ pack $ formatTime defaultTimeLocale jformat utct
434
434
_ -> v
435
435
jformat :: String
436
- jformat = " %FT%T%2QZ "
436
+ jformat = " %FT%T%3QZ "
437
437
trimTime v = v
438
438
439
439
mkFileScribe
You can’t perform that action at this time.
0 commit comments