Skip to content

Commit fa51539

Browse files
committed
接口调用加入日志输出
1 parent ce58afc commit fa51539

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpUserTagServiceImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
import me.chanjar.weixin.mp.api.WxMpService;
77
import me.chanjar.weixin.mp.api.WxMpUserTagService;
88
import me.chanjar.weixin.mp.bean.tag.WxUserTag;
9+
import org.slf4j.Logger;
10+
import org.slf4j.LoggerFactory;
911

1012
/**
1113
*
1214
* @author binarywang(https://github.com/binarywang)
1315
* Created by Binary Wang on 2016/9/2.
1416
*/
1517
public class WxMpUserTagServiceImpl implements WxMpUserTagService {
18+
protected final Logger log = LoggerFactory.getLogger(WxMpDataCubeServiceImpl.class);
1619
private static final String API_URL_PREFIX = "https://api.weixin.qq.com/cgi-bin/tags";
1720

1821
private WxMpService wxMpService;
@@ -33,6 +36,7 @@ public WxUserTag tagCreate(String name) throws WxErrorException {
3336
new SimplePostRequestExecutor(),
3437
url,
3538
json.toString());
39+
this.log.debug("\nurl:{}\nparams:{}\nresponse:{}",url, name, responseContent);
3640
return WxUserTag.fromJson(responseContent);
3741
}
3842
}

0 commit comments

Comments
 (0)