File tree Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -145,13 +145,15 @@ main = do
145
145
monadLogger <- askLoggerIO
146
146
147
147
koreLogEntriesAsJsonSelector <-
148
- case Map. lookup (Logger. LevelOther " SimplifyJson" ) logLevelToKoreLogEntryMap of
149
- Nothing -> do
150
- Logger. logWarnNS
151
- " proxy"
152
- " Could not find out which Kore log entries correspond to the SimplifyJson level"
153
- pure (const False )
154
- Just es -> pure (`elem` es)
148
+ if Logger. LevelOther " SimplifyJson" `elem` customLevels
149
+ then case Map. lookup (Logger. LevelOther " SimplifyJson" ) logLevelToKoreLogEntryMap of
150
+ Nothing -> do
151
+ Logger. logWarnNS
152
+ " proxy"
153
+ " Could not find out which Kore log entries correspond to the SimplifyJson level"
154
+ pure (const False )
155
+ Just koreSimplificationLogEntries -> pure (`elem` koreSimplificationLogEntries)
156
+ else pure (const False )
155
157
156
158
liftIO $ void $ withBugReport (ExeName " kore-rpc-booster" ) BugReportOnError $ \ _reportDirectory -> withMDLib llvmLibraryFile $ \ mdl -> do
157
159
let coLogLevel = fromMaybe Log. Info $ toSeverity logLevel
Original file line number Diff line number Diff line change @@ -157,13 +157,15 @@ main = do
157
157
monadLogger <- askLoggerIO
158
158
159
159
koreLogEntriesAsJsonSelector <-
160
- case Map. lookup (Logger. LevelOther " SimplifyJson" ) logLevelToKoreLogEntryMap of
161
- Nothing -> do
162
- Logger. logWarnNS
163
- " proxy"
164
- " Could not find out which Kore log entries correspond to the SimplifyJson level"
165
- pure (const False )
166
- Just es -> pure (`elem` es)
160
+ if Logger. LevelOther " SimplifyJson" `elem` customLevels
161
+ then case Map. lookup (Logger. LevelOther " SimplifyJson" ) logLevelToKoreLogEntryMap of
162
+ Nothing -> do
163
+ Logger. logWarnNS
164
+ " proxy"
165
+ " Could not find out which Kore log entries correspond to the SimplifyJson level"
166
+ pure (const False )
167
+ Just koreSimplificationLogEntries -> pure (`elem` koreSimplificationLogEntries)
168
+ else pure (const False )
167
169
168
170
let coLogLevel = fromMaybe Log. Info $ toSeverity logLevel
169
171
koreLogOptions =
You can’t perform that action at this time.
0 commit comments