mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 18:43:42 -05:00
1213709578
[web] migrate frontend logging to debugConsole GitOrigin-RevId: b03ff9030b03fff059738d2270bc4b4912e79f16
10 lines
272 B
JavaScript
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 = () => {}
|
|
}
|