refactor(接口测试): 优化接口无用日志的输出
--bug=1030971 --user=王孝刚 【接口测试】进入API文档页面-后端报错 https://www.tapd.cn/55049933/s/1424354
This commit is contained in:
parent
cc24cbc7fb
commit
22465364ef
|
@ -254,7 +254,9 @@ public class JSONUtil {
|
||||||
|
|
||||||
public static ArrayNode parseArrayNode(String text) {
|
public static ArrayNode parseArrayNode(String text) {
|
||||||
try {
|
try {
|
||||||
return (ArrayNode) objectMapper.readTree(text);
|
if (StringUtils.isNotBlank(text)) {
|
||||||
|
return (ArrayNode) objectMapper.readTree(text);
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LogUtil.error(e);
|
LogUtil.error(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue