-
Notifications
You must be signed in to change notification settings - Fork 631
[CBR-345] printing log items compatible with current format #3526
Conversation
trying hard on |
a662fc9
to
5740948
Compare
util/src/Pos/Util/Log/Scribes.hs
Outdated
@@ -49,7 +50,7 @@ mkTextFileScribe :: RotationParameters -> Internal.FileDescription -> Bool -> Se | |||
mkTextFileScribe rot fdesc colorize s v = do | |||
mkFileScribe rot fdesc formatter colorize s v | |||
where | |||
formatter :: LogItem a => Handle -> Bool -> Verbosity -> Item a -> IO Int | |||
formatter :: {-LogItem a =>-} Handle -> Bool -> Verbosity -> Item a -> IO Int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that's not needed, please drop it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleared
util/src/Pos/Util/Log/Scribes.hs
Outdated
@@ -100,7 +101,7 @@ mkFileScribeH :: Handle -> Bool -> Severity -> Verbosity -> IO Scribe | |||
mkFileScribeH h colorize s v = do | |||
hSetBuffering h LineBuffering | |||
locklocal <- newMVar () | |||
let logger :: forall a. LogItem a => Item a -> IO () | |||
let logger :: forall a. {-LogItem a =>-} Item a -> IO () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleared
5740948
to
ceb2c45
Compare
'LogItem a' is only needed when we call a function in 'katip' that takes an 'Item a' |
ceb2c45
to
ffdb717
Compare
rebased again on |
7ba1436
to
81be462
Compare
Signed-off-by: Alexander Diemand <[email protected]>
81be462
to
71e6ace
Compare
rebased on |
Description
this change preserves the format of the logging output
when we switch to the new logging library
katip
Linked issue
CBR-97 (user story)
CBR-345
Type of change
Developer checklist
Testing checklist
QA Steps
stack test cardano-sl-util
Screenshots (if available)