Need debug logging when authorization failed
tototoshi opened this issue · comments
Toshiyuki Takahashi commented
When authorization failed from exception thrown by underlying modules like db or cache api, the detail is ignored and not recorded. Due to this, debugging is very hard.
Will you add debug logging where recover
and recoverWith
?
} recoverWith {
case e =>
logger.debug(e.getMessage, e)
authenticationFailed(request).map(Left.apply)
}
Manabu Nakamura commented
Good proposal!
I consider the way of getting logger
instance...
Toshiyuki Takahashi commented
why not play.api.Logger?