File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ import Kore.Log.DebugSolver qualified as Log
88
88
import Kore.Log.Registry qualified as Log
89
89
import Kore.Rewrite.SMT.Lemma (declareSMTLemmas )
90
90
import Kore.Syntax.Definition (ModuleName (ModuleName ), SentenceAxiom )
91
+ import Kore.Util (extractLogMessageContext )
91
92
import Options.SMT as KoreSMT (KoreSolverOptions (.. ), Solver (.. ))
92
93
import Prettyprinter qualified as Pretty
93
94
import Proxy (KoreServer (.. ), ProxyConfig (.. ))
@@ -165,9 +166,10 @@ main = do
165
166
OneLine ->
166
167
if contexLoggingEnabled
167
168
then \ txt ->
168
- -- FIXME: likely terrible performance! Use something that does not unpack Text
169
- not (any (flip Glob. match (Text. unpack txt)) negGlobPatterns)
170
- && any (flip Glob. match (Text. unpack txt)) globPatterns
169
+ let contextStr = Text. unpack $ extractLogMessageContext txt
170
+ in -- FIXME: likely terrible performance! Use something that does not unpack Text
171
+ not (any (flip Glob. match contextStr) negGlobPatterns)
172
+ && any (flip Glob. match contextStr) globPatterns
171
173
else const True
172
174
_ -> const True
173
175
You can’t perform that action at this time.
0 commit comments