Skip to content

Commit

Permalink
refactor : LogAspect HealthCheck ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
imenuuu committed Jun 7, 2024
1 parent b7052b6 commit 3552006
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ public Object calculateApiMs(ProceedingJoinPoint joinPoint) throws Throwable{
try{
return joinPoint.proceed();
} finally {
long finish = System.currentTimeMillis();
long timeMs = finish - start;
log.info("END: {} {}ms", method, timeMs);
if(IGNORE_METHODS.contains(method)) {
long finish = System.currentTimeMillis();
long timeMs = finish - start;
log.info("END: {} {}ms", method, timeMs);
}
}
}

Expand Down

0 comments on commit 3552006

Please sign in to comment.