From 3ecdc98bb7c9febe9a0eea952297efbd183b4979 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 14 May 2021 10:44:33 +0800 Subject: [PATCH] 20210514 云顶 --- src/main/java/com/xcong/excoin/common/aop/ExceptionCatchAspect.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/excoin/common/aop/ExceptionCatchAspect.java b/src/main/java/com/xcong/excoin/common/aop/ExceptionCatchAspect.java index 1aaa265..d738caf 100644 --- a/src/main/java/com/xcong/excoin/common/aop/ExceptionCatchAspect.java +++ b/src/main/java/com/xcong/excoin/common/aop/ExceptionCatchAspect.java @@ -60,6 +60,10 @@ throw ex; } + if ("dev".equals(profiles) || "test".equals(profiles)) { + throw ex; + } + SysExceptionDetailEntity exceptionData = new SysExceptionDetailEntity(); String exStr = printStackTraceToString(ex); ThreadPoolUtils.EXECUTOR.execute(new Runnable(){ -- Gitblit v1.9.1