supress some log and add a log
This commit is contained in:
parent
3d20b09464
commit
943f83a33f
@ -60,6 +60,15 @@ class AppAccessManager : AccessManager {
|
||||
//if role is allowed, or enforcement is turned off or no roles are explicitly allowed
|
||||
handler.handle(ctx)
|
||||
} else {
|
||||
logger.warn(
|
||||
"entity - {}, action {}, user roles = {}, allowed = {}, isAllowed? {}, enforce? {}",
|
||||
entity,
|
||||
action,
|
||||
currentRoles(),
|
||||
allowedRoles,
|
||||
isAllowed,
|
||||
appConfig.enforceRoleRestriction()
|
||||
)
|
||||
ctx.status(HttpStatus.FORBIDDEN).result("user not allowed to do this")
|
||||
}
|
||||
}
|
||||
|
||||
@ -229,7 +229,7 @@ object Auth {
|
||||
.gt("refreshExpiresAt", LocalDateTime.now())
|
||||
.findList()
|
||||
.onEach {
|
||||
logger.warn("valid authToken for ${authUser.userName} is ${it.authToken}")
|
||||
logger.warn("valid authToken for ${authUser.userName} is ${it.authToken.substring(0..10)}")
|
||||
}
|
||||
.firstOrNull {
|
||||
it.authToken.equals(authToken, ignoreCase = true)
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
|
||||
<!-- SQL and bind values -->
|
||||
<logger name="io.ebean.SQL" level="WARN"/>
|
||||
<logger name="org.apache.http.client.protocol.ResponseProcessCookies" level="ERROR"/>
|
||||
|
||||
<!-- Transaction Commit and Rollback events -->
|
||||
<logger name="io.ebean.TXN" level="DEBUG"/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user