overleaf/services/web/test/frontend/cut-log-noise.js

11 lines
272 B
JavaScript
Raw Normal View History

/* eslint-disable no-console */
import { debugConsole } from '@/utils/debugging'
if (process.env.VERBOSE_LOGGING === 'true') {
debugConsole.debug = console.debug
debugConsole.log = console.log
} else {
debugConsole.warn = () => {}
debugConsole.error = () => {}
}