From e3c55dc2808358aa9d28dba5121de53638e0ed09 Mon Sep 17 00:00:00 2001 From: Clockwork Date: Mon, 18 Sep 2023 22:03:04 +0300 Subject: [PATCH] fix: address review --- scripts/data/gen-nodetime/src/relayer/lib/logger.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/data/gen-nodetime/src/relayer/lib/logger.ts b/scripts/data/gen-nodetime/src/relayer/lib/logger.ts index e0c757ff9b..00a966f12e 100644 --- a/scripts/data/gen-nodetime/src/relayer/lib/logger.ts +++ b/scripts/data/gen-nodetime/src/relayer/lib/logger.ts @@ -23,19 +23,19 @@ export default class ConsoleLogger { constructor(logLevel:LogLevels) { this.error = (msg) => { - if(logLevel>=0) { + if(logLevel>=LogLevels.ERROR) { console.log(msg); } return this; }; this.warn = (msg) => { - if(logLevel>=1) { + if(logLevel>=LogLevels.WARN) { console.log(msg); } return this; }; this.info = (msg) => { - if(logLevel>=2) { + if(logLevel>=LogLevels.INFO) { if (msg.indexOf('Relay') == 0 && msg.indexOf('Relay 0') == -1) { console.log(msg); } @@ -43,13 +43,13 @@ export default class ConsoleLogger { return this; }; this.verbose = (msg) => { - if(logLevel>=3) { + if(logLevel>=LogLevels.VERBOSE) { console.log(msg); } return this; }; this.debug = (msg) => { - if(logLevel>=4) { + if(logLevel>=LogLevels.DEBUG) { console.log(msg); } return this;