浏览代码

打印日志

wangming 1 年之前
父节点
当前提交
56015c4f46

+ 4 - 4
luckysheet-postgre/src/main/java/com/xc/luckysheet/postgres/impl/RecordDataInsertHandle.java

@@ -36,7 +36,7 @@ public class RecordDataInsertHandle extends BaseHandle implements IRecordDataIns
         try {
             pg.setValue(bson.toString());
         } catch (SQLException e) {
-            log.error(e.getMessage());
+            log.error("执行sql异常, {}", e);
         }
 
         String sql = "insert into "+JfGridConfigModel.TABLENAME +" (id,block_id,index,list_id,status,json_data,\"order\",is_delete) values " +
@@ -74,7 +74,7 @@ public class RecordDataInsertHandle extends BaseHandle implements IRecordDataIns
             try {
                 pg.setValue(b.getJson_data().toString());
             } catch (SQLException e) {
-                log.error(e.getMessage());
+                log.error("执行sql异常, {}", e);
             }
             objectList.add(pg);
 
@@ -139,7 +139,7 @@ public class RecordDataInsertHandle extends BaseHandle implements IRecordDataIns
 
                 pg.setValue(db.toString());
             } catch (SQLException e) {
-                log.error(e.getMessage());
+                log.error("执行sql异常, {}", e);
             }
             objectList.add(pg);
 
@@ -153,7 +153,7 @@ public class RecordDataInsertHandle extends BaseHandle implements IRecordDataIns
             log.info("InsertBatchDb count {}",i);
             return "";
         }catch (Exception ex){
-            log.error(ex.getMessage());
+            log.error("执行sql异常, {}", ex);
             return null;
         }
     }

+ 1 - 1
luckysheet/src/main/resources/application-prod.yml

@@ -6,7 +6,7 @@ showSql: true
 
 spring:
   redis:
-    host: 127.0.0.1
+    host: 10.128.51.177
     port: 6379
     password: Zpmc2024@1
     timeout: 10000ms