Skip to content

Commit

Permalink
fix: address review
Browse files Browse the repository at this point in the history
  • Loading branch information
clockworkgr committed Sep 18, 2023
1 parent ad5eb95 commit e3c55dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/data/gen-nodetime/src/relayer/lib/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,33 @@ 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);
}
}
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;
Expand Down

0 comments on commit e3c55dc

Please sign in to comment.