Skip to content

Commit

Permalink
chore: spread console and override only the log
Browse files Browse the repository at this point in the history
  • Loading branch information
gvc committed Oct 18, 2024
1 parent 5c7fb82 commit fe6e737
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/cli/src/utils/logger.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
export const logger = {
...console,

log: (...args: any[]) => {
process.env.DISCOVERY_DEBUG === 'true' ? console.log(...args) : undefined
},
error: console.error,
info: console.info,
warn: console.warn,
}

0 comments on commit fe6e737

Please sign in to comment.