Unverified Commit 5cd2469a authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Merge pull request #16401 from dannon/debugging-info-statement

[23.1] Add message showing console disable/enable, along with instructions o…
parents 36ed2d5a f31bc54d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -19,6 +19,9 @@ export function overrideProductionConsole() {
    let storedConsole = null;

    const disableConsole = () => {
        console.log(
            "The Galaxy console has been disabled.  You can enable it by running enableDebugging() in devtools."
        );
        storedConsole = console;
        // eslint-disable-next-line no-global-assign
        console = {};
@@ -28,6 +31,9 @@ export function overrideProductionConsole() {
    };

    const enableConsole = () => {
        console.log(
            "The Galaxy console has been enabled.  You can disable it by running disableDebugging() in devtools."
        );
        if (storedConsole) {
            // eslint-disable-next-line no-global-assign
            console = storedConsole;