overleaf/services/web/test/frontend/cut-log-noise.js
Jakob Ackermann 1213709578 Merge pull request #14980 from overleaf/jpa-debug-console
[web] migrate frontend logging to debugConsole

GitOrigin-RevId: b03ff9030b03fff059738d2270bc4b4912e79f16
2023-09-28 08:04:12 +00:00

10 lines
272 B
JavaScript

/* 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 = () => {}
}