@@ -110,9 +110,10 @@ respondEither cfg@ProxyConfig{boosterState} booster kore req = case req of
110
110
pure res
111
111
Left err -> do
112
112
Booster.Log. withContext CtxProxy $
113
- Booster.Log. logMessage' $
114
- Text. pack $
115
- " implies error in booster: " <> fromError err
113
+ Booster.Log. logMessage . Text. pack $
114
+ " Implies abort in booster: "
115
+ <> fromError err
116
+ <> " . Falling back to kore."
116
117
(koreRes, koreTime) <- Stats. timed $ kore req
117
118
logStats ImpliesM (boosterTime + koreTime, koreTime)
118
119
pure koreRes
@@ -139,7 +140,7 @@ respondEither cfg@ProxyConfig{boosterState} booster kore req = case req of
139
140
case bResult of
140
141
Left err -> do
141
142
Booster.Log. withContext CtxProxy $
142
- Booster.Log. logMessage' $
143
+ Booster.Log. logMessage $
143
144
Text. pack $
144
145
" get-model error in booster: " <> fromError err
145
146
Stats. timed $ kore req
@@ -222,17 +223,20 @@ respondEither cfg@ProxyConfig{boosterState} booster kore req = case req of
222
223
fromString other = Text. pack (show other)
223
224
224
225
Booster.Log. withContext CtxProxy $
225
- Booster.Log. logMessage' $
226
- Text. unwords
227
- [" Problem with simplify request: " , Text. pack getErrMsg, " -" , boosterError]
226
+ Booster.Log. logMessage $
227
+ " Problem with booster simplify request: "
228
+ <> Text. pack getErrMsg
229
+ <> " - "
230
+ <> boosterError
231
+ <> " . Falling back to kore."
228
232
-- NB the timing information for booster execution is lost here.
229
233
loggedKore SimplifyM req
230
234
_wrong ->
231
235
pure . Left $ ErrorObj " Wrong result type" (- 32002 ) $ toJSON _wrong
232
236
233
237
loggedKore method r = do
234
238
Booster.Log. withContext CtxProxy $
235
- Booster.Log. logMessage' $
239
+ Booster.Log. logMessage $
236
240
Text. pack $
237
241
show method <> " (using kore)"
238
242
(result, time) <- Stats. timed $ kore r
@@ -584,7 +588,7 @@ respondEither cfg@ProxyConfig{boosterState} booster kore req = case req of
584
588
585
589
when (length filteredNexts < maybe 0 length nextStates) $
586
590
Booster.Log. withContext CtxProxy $
587
- Booster.Log. logMessage'
591
+ Booster.Log. logMessage
588
592
(Text. pack (" Pruned #Bottom states: " <> show (length nextStates)))
589
593
590
594
case reason of
@@ -617,7 +621,8 @@ respondEither cfg@ProxyConfig{boosterState} booster kore req = case req of
617
621
}
618
622
| otherwise = Nothing
619
623
Booster.Log. withContext CtxProxy $
620
- Booster.Log. logMessage' (" Continuing after rewriting with rule " <> rewriteRuleId)
624
+ Booster.Log. logMessage
625
+ (" Continuing after rewriting with rule " <> rewriteRuleId)
621
626
pure $
622
627
Left
623
628
( execStateToKoreJson onlyNext
0 commit comments