Skip to content

Commit

Permalink
Add "[Interval] " prefix to non-production Logger logs too
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmischka committed Sep 7, 2022
1 parent 6e0dae3 commit a89b8c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/classes/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ export default class Logger {
}

warn(...args: any[]) {
console.warn(...args)
console.warn('[Interval] ', ...args)
}

error(...args: any[]) {
console.error(...args)
console.error('[Interval] ', ...args)
}

debug(...args: any[]) {
if (this.logLevel === 'debug') {
console.debug(...args)
console.debug('[Interval] ', ...args)
}
}

Expand Down

0 comments on commit a89b8c6

Please sign in to comment.