a3c39cde4b
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)
8 lines
204 B
TypeScript
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)
|
|
}
|
|
}
|