Add configurable dns cache

This commit is contained in:
Louis Lam
2022-12-12 17:19:22 +08:00
parent e6dc0a0293
commit 3b87209e26
9 changed files with 90 additions and 8 deletions

View File

@@ -115,7 +115,7 @@ class Logger {
* @param level Log level. One of INFO, WARN, ERROR, DEBUG or can be customized.
*/
log(module: string, msg: any, level: string) {
if (this.hideLog[level] && this.hideLog[level].includes(module)) {
if (this.hideLog[level] && this.hideLog[level].includes(module.toLowerCase())) {
return;
}