@@ -356,8 +356,7 @@ respondEither cfg@ProxyConfig{boosterState} booster kore req = case req of
356
356
| boosterResult. reason `elem` cfg. fallbackReasons -> do
357
357
Booster.Log. withContext CtxProxy $
358
358
Booster.Log. logMessage $
359
- Text. pack $
360
- " Booster " <> show boosterResult. reason <> " at " <> show boosterResult. depth
359
+ " Booster " <> displayExecuteResultVerbose boosterResult
361
360
-- simplify Booster's state with Kore's simplifier
362
361
Booster.Log. withContext CtxProxy $
363
362
Booster.Log. logMessage (" Simplifying booster state and falling back to Kore" :: Text )
@@ -494,8 +493,8 @@ respondEither cfg@ProxyConfig{boosterState} booster kore req = case req of
494
493
-- we were successful with the booster, thus we
495
494
-- return the booster result with the updated
496
495
-- depth, in case we previously looped
497
- Booster.Log. withContext CtxProxy . Booster.Log. logMessage . Text. pack $
498
- " Booster " <> show boosterResult. reason <> " at " <> show boosterResult . depth
496
+ Booster.Log. withContext CtxProxy . Booster.Log. logMessage $
497
+ " Booster " <> displayExecuteResultVerbose boosterResult
499
498
-- perform post-exec simplification
500
499
postExecResult <-
501
500
simplifyExecResult logSettings r. _module def boosterResult
@@ -753,3 +752,13 @@ mkFallbackLogEntry boosterResult koreResult =
753
752
getRewriteSuccessRuleId = \ case
754
753
RPCLog. Rewrite {result = RPCLog. Success {ruleId}} -> Just ruleId
755
754
_ -> Nothing
755
+
756
+ displayExecuteResultVerbose :: ExecuteResult -> Text
757
+ displayExecuteResultVerbose result =
758
+ Text. pack $
759
+ show result. reason
760
+ <> " at "
761
+ <> show result. depth
762
+ <> " with "
763
+ <> show (length <$> result. nextStates)
764
+ <> " next states"
0 commit comments