记得上下班打卡 | git大法好,push需谨慎

Commit 264c95a5 authored by 张国柄's avatar 张国柄

~log.opt;

parent 8dfade45
...@@ -44,7 +44,7 @@ public class BaseDao implements IBaseDao { ...@@ -44,7 +44,7 @@ public class BaseDao implements IBaseDao {
TransactionTemplate tt = new TransactionTemplate(transactionManager); TransactionTemplate tt = new TransactionTemplate(transactionManager);
return tt.execute(callback); return tt.execute(callback);
} catch (Exception ex) { } catch (Exception ex) {
log.error("###\nSQL.Preparing:{}\nParameters:{}", JsonUtils.toJson(sql), JsonUtils.toJson(values), ex); log.error("#Ex:{};{\"Sql\":{},\"Vals\":{}}", ex.getMessage(), JsonUtils.toJson(sql), JsonUtils.toJson(values));
return false; return false;
} }
} }
...@@ -74,9 +74,9 @@ public class BaseDao implements IBaseDao { ...@@ -74,9 +74,9 @@ public class BaseDao implements IBaseDao {
return tt.execute(callback); return tt.execute(callback);
} catch (Exception ex) { } catch (Exception ex) {
// if (ex instanceof LiquidnetServiceException) { // if (ex instanceof LiquidnetServiceException) {
// log.error("###Error.Code:{} - {}", ((LiquidnetServiceException) ex).getCode(), ex.getMessage()); // log.error("#Ex.Code:{} - {}", ((LiquidnetServiceException) ex).getCode(), ex.getMessage());
// } else { // } else {
log.error("###Error.Sqls:{}\nParameters:{},Ex:{}", JsonUtils.toJson(sql), JsonUtils.toJson(values), ex.getMessage()); log.error("#Ex:{};{\"Sqls\":{},\"Vals\":{}}", ex.getMessage(), JsonUtils.toJson(sql), JsonUtils.toJson(values));
// } // }
return false; return false;
} }
...@@ -98,7 +98,7 @@ public class BaseDao implements IBaseDao { ...@@ -98,7 +98,7 @@ public class BaseDao implements IBaseDao {
TransactionTemplate tt = new TransactionTemplate(transactionManager); TransactionTemplate tt = new TransactionTemplate(transactionManager);
return tt.execute(callback); return tt.execute(callback);
} catch (Exception ex) { } catch (Exception ex) {
log.error("###Error.Sqls:{}\nParameters:{},Ex:{}", sql); log.error("#Ex:{};{\"Sqls\":{}}", ex.getMessage(), JsonUtils.toJson(sql));
return false; return false;
} }
} }
...@@ -129,7 +129,7 @@ public class BaseDao implements IBaseDao { ...@@ -129,7 +129,7 @@ public class BaseDao implements IBaseDao {
} }
}, keyHolder); }, keyHolder);
} catch (Exception e) { } catch (Exception e) {
log.error("###\nSQL.Preparing:{}\nParameters:{}", sql, JsonUtils.toJson(param), e); log.error("#Ex:{};{\"Sql\":{},\"Val\":{}}", e.getMessage(), sql, JsonUtils.toJson(param));
} }
return keyHolder.getKey().intValue(); return keyHolder.getKey().intValue();
......
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