mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-06-28 13:16:19 +08:00
🎨【小程序】发订阅消息的“43101用户未订阅消息”异常日志调整为debug
This commit is contained in:
parent
41081561b5
commit
bf35797b91
@ -459,8 +459,10 @@ public abstract class BaseWxMaServiceImpl<H, P> implements WxMaService, RequestH
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (error.getErrorCode() != 0) {
|
if (error.getErrorCode() != 0) {
|
||||||
if (error.getErrorCode() != WxMaErrorMsgEnum.CODE_43101.getCode()) {
|
if (error.getErrorCode() == WxMaErrorMsgEnum.CODE_43101.getCode()) {
|
||||||
// 43101 日志太多, 不打印
|
// 43101 日志太多, 打印为debug, 其他情况打印为warn
|
||||||
|
log.debug("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uriWithAccessToken, dataForLog, error);
|
||||||
|
} else {
|
||||||
log.warn("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uriWithAccessToken, dataForLog, error);
|
log.warn("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uriWithAccessToken, dataForLog, error);
|
||||||
}
|
}
|
||||||
throw new WxErrorException(error, e);
|
throw new WxErrorException(error, e);
|
||||||
|
Loading…
Reference in New Issue
Block a user