优化日志打印的方式
This commit is contained in:
@@ -36,12 +36,9 @@ public class GlobalExceptionHandler {
|
||||
status.put(ExceptionConstants.GLOBAL_RETURNS_DATA, ExceptionConstants.SERVICE_SYSTEM_ERROR_MSG);
|
||||
log.error("Global Exception Occured => url : {}, msg : {}", request.getRequestURL(), e.getMessage());
|
||||
/**
|
||||
* create by: qiankunpingtai
|
||||
* create time: 2019/4/18 17:41
|
||||
* 这里输出完整的堆栈信息,否则有些异常完全不知道哪里出错了。
|
||||
*/
|
||||
log.error("Global Exception Occured => url : {}", request.getRequestURL(), e);
|
||||
e.printStackTrace();
|
||||
return status;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user