本地联调时 访问pudge apisix接口时 接口报错打印错误日志 方便下游业务排查问题

This commit is contained in:
wangjibo 2023-09-21 14:07:40 +08:00
parent c1d3d03e30
commit c2467df19e

View File

@ -259,6 +259,7 @@ public class ContextInfoBuilderAspect {
} else if (map.containsKey("error")) { } else if (map.containsKey("error")) {
throw new AuthException(map.get("error").toString()); throw new AuthException(map.get("error").toString());
} else { } else {
log.warn("remoteAuthFromPudge error {}", JSONUtil.toJsonStr(map));
throw new AuthException("无法解析鉴权认证请求的返回值token=" + contextInfo.getToken()); throw new AuthException("无法解析鉴权认证请求的返回值token=" + contextInfo.getToken());
} }
} catch (AuthException e) { } catch (AuthException e) {