Make findMapper log to debug level to avoid nacos.log print much log. (#11786)
This commit is contained in:
parent
8f1cb59370
commit
64b9e8d3f7
@ -99,7 +99,9 @@ public class MapperManager {
|
||||
* @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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user