From 5e8b57aacdbf94cd57c4d3533ded5ee73ff71340 Mon Sep 17 00:00:00 2001 From: jack <jack.su@pollex.com.tw> Date: 星期五, 27 十二月 2024 14:43:28 +0800 Subject: [PATCH] [UPDATE] 透過e service 登入時調整判斷錯誤的邏輯, 如果登入失敗的時候也需要從DB提取錯誤訊息顯示 --- pamapi/src/main/java/com/pollex/pam/aop/logging/LoggingAspect.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/aop/logging/LoggingAspect.java b/pamapi/src/main/java/com/pollex/pam/aop/logging/LoggingAspect.java index 40b6006..50e5c0e 100644 --- a/pamapi/src/main/java/com/pollex/pam/aop/logging/LoggingAspect.java +++ b/pamapi/src/main/java/com/pollex/pam/aop/logging/LoggingAspect.java @@ -42,7 +42,7 @@ /** * Pointcut that matches all Spring beans in the application's main packages. */ - @Pointcut("within(com.pollex.pam.repository..*)" + " || within(com.pollex.pam.service..*)" + " || within(com.pollex.pam.web.rest..*)") + @Pointcut("within(com.pollex.pam.business.repository..*)" + " || within(com.pollex.pam.business.service..*)" + " || within(com.pollex.pam.web.rest..*)") public void applicationPackagePointcut() { // Method is empty as this is just a Pointcut, the implementations are in the advices. } @@ -100,7 +100,9 @@ try { Object result = joinPoint.proceed(); if (log.isDebugEnabled()) { - log.debug("Exit: {}() with result = {}", joinPoint.getSignature().getName(), result); + if(!(result instanceof byte[])){ + log.debug("Exit: {}() with result = {}", joinPoint.getSignature().getName(), result); + } } return result; } catch (IllegalArgumentException e) { -- Gitblit v1.8.0