Skip to content

Commit

Permalink
reduce local logging noise
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Aug 5, 2024
1 parent f6edffd commit d7f56c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export class Logger {
}

debug(...args: any[]) {
console.debug(`[${this.tag}]`, ...args);
if (process.env.DEBUG === 'true') {
console.debug(`[${this.tag}]`, ...args);
}
}
}

Expand Down

0 comments on commit d7f56c8

Please sign in to comment.