Skip to content

Commit

Permalink
fix(logging): log at higher level for some auth failures (#463)
Browse files Browse the repository at this point in the history
When a param is missing from the `hasPermission` call, log it louder
  • Loading branch information
marchello2000 authored Sep 3, 2019
1 parent beb8238 commit 8cdc9fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ public boolean hasPermission(
return true;
}
if (resourceName == null || resourceType == null || authorization == null) {
log.debug(
"Permission denied due to null argument. resourceName={}, resourceType={}, "
log.warn(
"Permission denied because at least one of the required arguments was null. resourceName={}, resourceType={}, "
+ "authorization={}",
resourceName,
resourceType,
Expand Down

0 comments on commit 8cdc9fc

Please sign in to comment.