Selaa lähdekoodia

关闭日志打印

dos 3 kuukautta sitten
vanhempi
commit
9e5842a7a5

+ 4 - 1
game-admin/src/main/resources/application.yml

@@ -34,7 +34,7 @@ server:
 # 日志配置
 logging:
   level:
-    com.game: debug
+    com.game: info
     org.springframework: warn
 
 # 用户配置
@@ -114,6 +114,9 @@ mybatis-plus:
   mapperLocations: classpath*:mapper/**/*Mapper.xml
   # 加载全局的配置文件
   configLocation: classpath:mybatis/mybatis-config.xml
+#  configuration:
+#    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
+
 
 # PageHelper分页插件
 pagehelper:

+ 1 - 1
game-framework/src/main/java/com/game/framework/datasource/DynamicDataSourceContextHolder.java

@@ -23,7 +23,7 @@ public class DynamicDataSourceContextHolder
      */
     public static void setDataSourceType(String dsType)
     {
-        log.info("切换到{}数据源", dsType);
+//        log.info("切换到{}数据源", dsType);
         CONTEXT_HOLDER.set(dsType);
     }