记得上下班打卡 | git大法好,push需谨慎

Commit f66cd0c3 authored by 张国柄's avatar 张国柄

~opt:log.level;

parent f48535e7
...@@ -85,9 +85,9 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter { ...@@ -85,9 +85,9 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter {
request.setAttribute(CurrentUtil.uTag, JsonUtils.toJson(claims)); request.setAttribute(CurrentUtil.uTag, JsonUtils.toJson(claims));
} catch (ExpiredJwtException expiredJwtEx) { } catch (ExpiredJwtException expiredJwtEx) {
log.error("Ex.ExpiredJwtException:{},responseCode:{}", expiredJwtEx.getMessage(), responseCode = TOKEN_INVALID); log.warn("Ex.ExpiredJwtException:{},responseCode:{}", expiredJwtEx.getMessage(), responseCode = TOKEN_INVALID);
} catch (Exception ex) { } catch (Exception ex) {
log.error("Ex.Exception:{},responseCode:{}", ex.getMessage(), responseCode = TOKEN_ILLEGAL); log.warn("Ex.Exception:{},responseCode:{}", ex.getMessage(), responseCode = TOKEN_ILLEGAL);
} }
} else { } else {
responseCode = TOKEN_ILLEGAL; responseCode = TOKEN_ILLEGAL;
...@@ -276,7 +276,7 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter { ...@@ -276,7 +276,7 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter {
// log.info("#ATH.ENCRYPT耗时:{}ms", System.currentTimeMillis() - s); // log.info("#ATH.ENCRYPT耗时:{}ms", System.currentTimeMillis() - s);
// s = System.currentTimeMillis(); // s = System.currentTimeMillis();
ResponseDto<String> check = feignAuthorityClient.check(encrypt); ResponseDto<String> check = feignAuthorityClient.check(encrypt);
log.info("#ATH.VALID耗时:{}ms", System.currentTimeMillis() - s); log.debug("#ATH.VALID耗时:{}ms", System.currentTimeMillis() - s);
if (check.isSuccess()) { if (check.isSuccess()) {
String valEncrypt = check.getData(); String valEncrypt = check.getData();
...@@ -287,7 +287,7 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter { ...@@ -287,7 +287,7 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter {
} }
} }
} catch (Exception e) { } catch (Exception e) {
log.error("GLOBAL:Authority Check Exception", e); log.warn("Ex.Authority Check Exception[ssokey={}]", ssokey, e);
} }
return val; return val;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment