浏览代码

修改日志级别

zhouhao 7 年之前
父节点
当前提交
5b04af89a4

+ 2 - 1
hsweb-commons/hsweb-commons-entity/src/main/java/org/hswebframework/web/commons/entity/factory/MapperEntityFactory.java

@@ -108,7 +108,8 @@ public class MapperEntityFactory implements EntityFactory {
             realType = beanClass;
             realType = beanClass;
         }
         }
         if (realType != null) {
         if (realType != null) {
-            logger.debug("use instance {} for {}", realType, beanClass);
+            if (logger.isDebugEnabled())
+                logger.debug("use instance {} for {}", realType, beanClass);
             mapper = new Mapper<>(realType, new DefaultInstanceGetter(realType));
             mapper = new Mapper<>(realType, new DefaultInstanceGetter(realType));
             realTypeMapper.put(beanClass, mapper);
             realTypeMapper.put(beanClass, mapper);
         }
         }