qinchao 3 лет назад
Родитель
Сommit
0e435b551a

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/controller/OfflineExamController.java

@@ -71,7 +71,7 @@ public class OfflineExamController {
         try {
             multipart = ((MultipartHttpServletRequest) request).getFile("file");
         } catch (Exception e) {
-            LOG.error(e.getMessage());
+            LOG.error(e.getMessage(), e);
         }
         if (multipart == null) {
             return new Result().error("请选择要上传文件!");

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/core/config/TokenFilter.java

@@ -210,7 +210,7 @@ public class TokenFilter implements Filter {
             loginInfo.setCreateTime(new Date());
             authService.cacheLoginInfo(loginInfo, userInfo.getKey());
         } catch (Exception e) {
-            LOG.error(e.getMessage());
+            LOG.error(e.getMessage(), e);
         }
     }
 

+ 2 - 2
src/main/java/cn/com/qmth/examcloud/app/core/utils/HttpClientBuilder.java

@@ -62,7 +62,7 @@ public class HttpClientBuilder {
                 sslContext.init(null, new TrustManager[]{new TrustAllCert()}, new SecureRandom());
                 return sslContext.getSocketFactory();
             } catch (Exception e) {
-                LOG.error(e.getMessage());
+                LOG.error(e.getMessage(), e);
                 throw new RuntimeException(e);
             }
         }
@@ -78,7 +78,7 @@ public class HttpClientBuilder {
 
             throw new RuntimeException("download fail, url is " + url);
         } catch (Exception e) {
-            LOG.error(e.getMessage());
+            LOG.error(e.getMessage(), e);
             throw new RuntimeException(e);
         }
     }