tldraw/apps/vscode/extension/src/utils.ts
Steve Ruiz a3c39cde4b
replace console.log with nicelog (#1496)
This PR replaces our `console.log` with `nicelog` so that I can more
easily grep for errant console.logs.

### Change Type

- [x] `internal` — Any other changes that don't affect the published
package (will not publish a new version)
2023-06-01 18:01:49 +00:00

8 lines
204 B
TypeScript

const DEBUG_EVENTS = false
export const nicelog = (...args: any[]) => {
if (process.env.NODE_ENV !== 'production' && DEBUG_EVENTS) {
// eslint-disable-next-line no-console
console.log(...args)
}
}