禁用PathDriverClassLoader的getResource()调试日志,避免有些驱动频繁自动调用此接口刷屏日志

This commit is contained in:
datagear 2021-06-16 10:28:48 +08:00
parent 98c964d5ef
commit e5bfbeda71
1 changed files with 4 additions and 2 deletions

View File

@ -100,8 +100,10 @@ public class PathDriverClassLoader extends URLClassLoader
// return parent.getResource(name);
// }
if (LOGGER.isDebugEnabled())
LOGGER.debug("getResource [" + url + "] for [" + name + "] in path [" + getPath() + "]");
// 禁用这里的调试输出有些驱动MySQL驱动会频繁自动调用此接口刷屏日志
// if (LOGGER.isDebugEnabled())
// LOGGER.debug("getResource [" + url + "] for [" + name + "] in path ["
// + getPath() + "]");
return url;
}