Skip to content

Commit

Permalink
trace-dispatcher: fix optimization bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jutaro committed May 30, 2023
1 parent 95d8789 commit de37b2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion trace-dispatcher/src/Cardano/Logging/Trace.hs
Expand Up @@ -238,7 +238,6 @@ setDetails p (Trace tr) = Trace $
tr

-- | Sets detail level for the messages in this trace based on the message
-- TODO Yup handle exception
withDetails :: forall m a. (Monad m, MetaTrace a) => Trace m a -> Trace m a
withDetails (Trace tr) = Trace $
T.contramap
Expand Down
11 changes: 6 additions & 5 deletions trace-dispatcher/src/Cardano/Logging/Tracer/Composed.hs
Expand Up @@ -88,11 +88,12 @@ mkCardanoTracer' trStdout trForward mbTrEkg tracerPrefix hook = do
addContextAndFilter tr = do
tr' <- withDetailsFromConfig tr
tr'' <- filterSeverityFromConfig tr'
pure $ withDetails
$ withSeverity
$ withPrivacy
$ withInnerNames
$ appendPrefixNames tracerPrefix tr''
pure $ withInnerNames
$ appendPrefixNames tracerPrefix
$ withSeverity
$ withPrivacy
$ withDetails
tr''

traceNamespaceErrors ::
Trace IO TraceDispatcherMessage
Expand Down

0 comments on commit de37b2c

Please sign in to comment.