added a comment to formatMessage
This commit is contained in:
parent
f45297d86b
commit
70ee16d202
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ syncMVar = unsafePerformIO $ newMVar ()
|
|||
myLogAction :: LogAction EnvM Message
|
||||
myLogAction = LogAction $ \x -> let m = formatMessage x in EnvM . lift $ m `pseq` modifyMVar_ syncMVar (const (T.putStrLn m))
|
||||
|
||||
-- my format Message without fancy colors, but with syslog numbers
|
||||
formatMessage :: Message -> T.Text
|
||||
formatMessage Msg{..} =
|
||||
showMyServerity msgSeverity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue