fix: 优化日志。for 内的info日志打印,应当受到 sqlLogEnabled 的控制

Signed-off-by: wkclz <wkclz@qq.com>
This commit is contained in:
wkclz
2025-02-23 06:02:43 +00:00
committed by Gitee
parent 48a955f1dc
commit e9453ec0b6

View File

@@ -176,11 +176,12 @@ public class LiteFlowJdbcUtil {
if (checkConnectionCanExecuteSql(dataSource.getConnection(), executeSql)) {
// 找到数据源名称后,将其缓存起来,下次使用就不再寻找
DataSourceBeanNameHolder.init(dataSourceName);
LOG.info("use dataSourceName[{}],has found liteflow config", dataSourceName);
if (sqlParserVO.getSqlLogEnabled()) {
LOG.info("use dataSourceName[{}],has found liteflow config", dataSourceName);
}
break;
} else {
LOG.info("check dataSourceName[{}],but not has liteflow config", dataSourceName);
LOG.warn("check dataSourceName[{}],but not has liteflow config", dataSourceName);
}
}
}