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

Merge pull request !327 from wkclz/N/A
This commit is contained in:
铂赛东
2025-02-23 09:20:37 +00:00
committed by Gitee

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);
}
}
}