Commit dca7e991 by s_guodong

优化日志级别

parent 18a2664d
...@@ -318,7 +318,6 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession ...@@ -318,7 +318,6 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
while ((i = rsReader.read(chs)) != -1) { while ((i = rsReader.read(chs)) != -1) {
sb.append(chs, 0, i); sb.append(chs, 0, i);
} }
System.out.println("clob to string >>" + sb.toString());
method.invoke(module, sb.toString()); method.invoke(module, sb.toString());
} catch (Exception e) { } catch (Exception e) {
log.error("执行方法{}时CLOB类型数据转String异常", methodName); log.error("执行方法{}时CLOB类型数据转String异常", methodName);
...@@ -334,17 +333,18 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession ...@@ -334,17 +333,18 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
} }
} }
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {
log.info("类{}中,根据方法名{},入参类型{}未找到方法", iModule.getDataClass().getName(), methodName, field.getType()); log.error("类{}中,根据方法名{},入参类型{}未找到方法", iModule.getDataClass().getName(), methodName, field.getType());
throw new RuleExecuteException("执行方法出错", e); throw new RuleExecuteException("执行方法出错", e);
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
log.info("执行方法{},需要入参类型{},实际传入参数类型{}", methodName, field.getType(), fieldVal.getClass().getName()); log.error("执行方法{},需要入参类型{},实际传入参数类型{}", methodName, field.getType(), fieldVal.getClass().getName());
throw new RuleExecuteException("执行方法出错", e); throw new RuleExecuteException("执行方法出错", e);
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
log.error("类{}执行方法{},需要入参类型{},实际传入参数类型{}", iModule.getDataClass().getName(), methodName, log.error("类{}执行方法{},需要入参类型{},实际传入参数类型{}", iModule.getDataClass().getName(), methodName,
field.getType(), fieldVal.getClass().getName()); field.getType(), fieldVal.getClass().getName());
throw new RuleExecuteException("执行方法出错", e); throw new RuleExecuteException("执行方法出错", e);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); log.error(e.getMessage(), e);
throw new RuleExecuteException("执行方法出错", e);
} }
} }
} }
......
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