Skip to content

Commit

Permalink
logging aspect 수정함
Browse files Browse the repository at this point in the history
  • Loading branch information
frankyoh committed Aug 8, 2019
1 parent 0cfb00b commit 4865919
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public void springBeanPointcut() {
* Pointcut that matches all Spring beans in the application's main packages.
*/
@Pointcut("within(com.mycompany.myapp.repository..*)"+
" || within(com.mycompany.myapp.service..*)"+
" || within(com.mycompany.myapp.web.rest..*)")
public void applicationPackagePointcut() {
// 코멘트 제거함
Expand Down Expand Up @@ -72,7 +71,7 @@ public void logAfterThrowing(JoinPoint joinPoint, Throwable e) {
@Around("applicationPackagePointcut() && springBeanPointcut()")
public Object logAround(ProceedingJoinPoint joinPoint) throws Throwable {
try {
//debug
//작업중
} catch (IllegalArgumentException e) {
log.error("Illegal argument: {} in {}.{}()", Arrays.toString(joinPoint.getArgs()),
joinPoint.getSignature().getDeclaringTypeName(), joinPoint.getSignature().getName());
Expand Down

0 comments on commit 4865919

Please sign in to comment.