Skip to content

Commit b0805b8

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents d50f1b5 + 93dbf1c commit b0805b8

28 files changed

+721
-342
lines changed

trace-dispatcher/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Revision history for trace-dispatcher
22

3+
## 2.5.1 -- Dec 2023
4+
5+
* Rewrite of examples as unit tests
6+
37
## 2.4.1 -- Nov 2023
48

59
* Updated to `ouroboros-network-0.10`
File renamed without changes.
File renamed without changes.
File renamed without changes.

trace-dispatcher/examples/Examples/Documentation.hs

Lines changed: 0 additions & 58 deletions
This file was deleted.

trace-dispatcher/examples/Examples/FrequencyLimiting.hs

Lines changed: 0 additions & 31 deletions
This file was deleted.

trace-dispatcher/examples/Examples/Routing.hs

Lines changed: 0 additions & 37 deletions
This file was deleted.

trace-dispatcher/examples/Examples/Trivial.hs

Lines changed: 0 additions & 49 deletions
This file was deleted.

trace-dispatcher/examples/Main.hs

Lines changed: 0 additions & 34 deletions
This file was deleted.

trace-dispatcher/src/Cardano/Logging/Configuration.hs

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -257,27 +257,22 @@ filterSeverityFromConfig =
257257
where
258258
mapF confSev =
259259
\case
260-
(lc, Left c@TCDocument {}) -> do
261-
addFiltered c confSev
260+
(lc, Right cont) -> do
262261
let visible = case lcSeverity lc of
263262
(Just s) -> case confSev of
264263
Just (SeverityF (Just fs)) -> s >= fs
265264
Just (SeverityF Nothing) -> False
266265
Nothing -> True
267266
Nothing -> True
268267
if visible
269-
then pure $ Just (lc, Left c)
270-
else pure Nothing
271-
(lc, cont) -> do
272-
let visible = case lcSeverity lc of
273-
(Just s) -> case confSev of
274-
Just (SeverityF (Just fs)) -> s >= fs
275-
Just (SeverityF Nothing) -> False
276-
Nothing -> True
277-
Nothing -> True
278-
if visible
279-
then pure $ Just (lc, cont)
268+
then pure $ Just (lc, Right cont)
280269
else pure Nothing
270+
(lc, Left c@TCDocument {}) -> do
271+
addFiltered c confSev
272+
pure (Just (lc, Left c))
273+
(lc, anx) -> do
274+
pure (Just (lc, anx))
275+
281276

282277
-- | Set detail level of a trace from the config
283278
withDetailsFromConfig :: (MonadIO m) =>

0 commit comments

Comments
 (0)