We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
reverse
1 parent 335bb57 commit 3e16f28Copy full SHA for 3e16f28
grease-cli/tests/Main.hs
@@ -478,6 +478,7 @@ withCapturedLogs ::
478
withCapturedLogs withLogAction = do
479
logRef <- IORef.newIORef []
480
withLogAction (capture logRef)
481
+ -- Reverse the list so that logs appear chronologically
482
logs <- List.reverse <$> IORef.readIORef logRef
483
let logTxt = Text.unlines (map (Text.pack . show . PP.pretty) logs)
484
pure logTxt
0 commit comments