Commit fbc5a161 authored by 钱坤's avatar 钱坤

e.printStackTrace()改为log.error()

parent 1b1a775e
......@@ -105,7 +105,7 @@ public class OSSFileService {
try {
bi = ImageIO.read(bins);
} catch (Exception e) {
e.printStackTrace();
log.error("{}", e.getMessage(), e);
}
HashMap<String, Integer> attr = new HashMap<>();
if (bi != null) {
......
......@@ -91,7 +91,6 @@ public class TencentcloudUtils {
}
} catch (TencentCloudSDKException e) {
log.error("调用腾文本内容安全异常");
e.printStackTrace();
//调用失败时,不影响用户发布主题
return "";
}
......@@ -115,7 +114,6 @@ public class TencentcloudUtils {
}
} catch (TencentCloudSDKException e) {
log.error("调用腾讯图片内容检测异常");
e.printStackTrace();
return CommonResp.failed("图片检查异常");
}
return CommonResp.success();
......
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