Răsfoiți Sursa

去掉e.print

lideyin 5 ani în urmă
părinte
comite
ee65569f41

+ 3 - 3
examcloud-core-oe-admin-service/src/main/java/cn/com/qmth/examcloud/core/oe/admin/service/impl/ExamCaptureServiceImpl.java

@@ -153,7 +153,7 @@ public class ExamCaptureServiceImpl implements ExamCaptureService {
                             }
                         }
                     } catch (JSONException e) {
-                        e.printStackTrace();
+                        LOG.error("获取虚拟摄像头名称失败",e);
                         throw new StatusException("ExamCaptureService-001", "获取虚拟摄像头名称失败");
                     }
 
@@ -217,7 +217,7 @@ public class ExamCaptureServiceImpl implements ExamCaptureService {
                     }
                 }
             } catch (JSONException e) {
-                e.printStackTrace();
+                LOG.error("获取虚拟摄像头名称失败",e);
                 throw new StatusException("ExamCaptureService-002", "获取虚拟摄像头名称失败");
             }
 
@@ -252,7 +252,7 @@ public class ExamCaptureServiceImpl implements ExamCaptureService {
                     }
                 }
             } catch (JSONException e) {
-                e.printStackTrace();
+                LOG.error("json格式转换失败",e);
                 return false;
             }