Skip to content

Commit 0226aed

Browse files
committed
Render JSON logs as Text
1 parent 9e2401f commit 0226aed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kore/src/Kore/Log.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import Control.Monad.Cont (
3333
ContT (..),
3434
runContT,
3535
)
36-
import Data.Aeson qualified as JSON
36+
import Data.Aeson.Text qualified as JSON
3737
import Data.Functor.Contravariant (
3838
contramap,
3939
)
@@ -284,7 +284,7 @@ makeKoreLogger exeName startTime timestampSwitch koreLogFormat logActionText =
284284
| OneLine <- koreLogFormat =
285285
Pretty.hsep [header, oneLineDoc actualEntry]
286286
| Json <- koreLogFormat =
287-
Pretty.hsep [header, Pretty.viaShow . JSON.encode $ oneLineJson actualEntry]
287+
Pretty.hsep [header, Pretty.pretty . JSON.encodeToLazyText $ oneLineJson actualEntry]
288288
| otherwise =
289289
(Pretty.vsep . concat)
290290
[ [header]

0 commit comments

Comments
 (0)