Commit fbc5a161 authored by 钱坤's avatar 钱坤

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

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