Skip to content

Commit

Permalink
fix: logging had no backward level logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Heilemann committed Feb 19, 2020
1 parent ff1b9dd commit 17e12ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ class Logger {
}

debug(...messages: AllowedTypes[]) {
if (this.logLevel !== LogLevel.DEBUG) return
if (this.logLevel < LogLevel.DEBUG) return
const message = this.buildLogString(LogLevel.DEBUG, messages)
outputChannel.appendLine(message)
}

info(...messages: AllowedTypes[]) {
if (this.logLevel !== LogLevel.INFO) return
if (this.logLevel < LogLevel.INFO) return
const message = this.buildLogString(LogLevel.INFO, messages)
outputChannel.appendLine(message)
}
Expand Down

0 comments on commit 17e12ae

Please sign in to comment.