Skip to content

Commit

Permalink
fix: Not to log AuthExceptions (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3CHO authored Jan 14, 2025
1 parent e1821e1 commit c5143ab
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ public Object intercept(ProceedingJoinPoint point) {
String objectName = signature.getDeclaringTypeName();
String methodName = signature.getName();
String msg = t.getClass().getSimpleName() + " occurs when calling " + objectName + "." + methodName;
if (t instanceof AuthException || t instanceof ValidationException || t instanceof NotFoundException
if (t instanceof AuthException) {
// No logging for AuthException
} else if (t instanceof ValidationException || t instanceof NotFoundException
|| t instanceof ResourceConflictException) {
log.warn(msg, t);
} else {
Expand Down

0 comments on commit c5143ab

Please sign in to comment.