Skip to content

Commit

Permalink
Make findMapper log to debug level to avoid nacos.log print much log. (
Browse files Browse the repository at this point in the history
  • Loading branch information
KomachiSion committed Mar 1, 2024
1 parent 8f1cb59 commit 64b9e8d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ private static void putMapper(Mapper mapper) {
* @return mapper.
*/
public <R extends Mapper> R findMapper(String dataSource, String tableName) {
LOGGER.info("[MapperManager] findMapper dataSource: {}, tableName: {}", dataSource, tableName);
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("[MapperManager] findMapper dataSource: {}, tableName: {}", dataSource, tableName);
}
if (StringUtils.isBlank(dataSource) || StringUtils.isBlank(tableName)) {
throw new NacosRuntimeException(FIND_DATASOURCE_ERROR_CODE, "dataSource or tableName is null");
}
Expand Down

0 comments on commit 64b9e8d

Please sign in to comment.