convert all log prorities, not just debug
In particular, error should go to stderr
This commit is contained in:
parent
3b3aaf0d56
commit
ae9bbf25a0
1 changed files with 7 additions and 2 deletions
|
@ -521,5 +521,10 @@ mkLocationConstraint "US" = S3.locationUsClassic
|
|||
mkLocationConstraint r = r
|
||||
|
||||
debugMapper :: AWS.Logger
|
||||
debugMapper AWS.Debug t = debugM "S3" (T.unpack t)
|
||||
debugMapper _ _ = noop
|
||||
debugMapper level t = forward "S3" (T.unpack t)
|
||||
where
|
||||
forward = case level of
|
||||
AWS.Debug -> debugM
|
||||
AWS.Info -> infoM
|
||||
AWS.Warning -> warningM
|
||||
AWS.Error -> errorM
|
||||
|
|
Loading…
Add table
Reference in a new issue