From d633cb3b97b71d91eba2d05a1a614dca20ed0264 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Mon, 20 Jan 2020 20:07:01 +0100 Subject: [PATCH] Only allow in-code log overrides if we're running in dev --- src/ext/lib/Logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext/lib/Logger.js b/src/ext/lib/Logger.js index 90a1582..db5d7a4 100644 --- a/src/ext/lib/Logger.js +++ b/src/ext/lib/Logger.js @@ -4,7 +4,7 @@ import currentBrowser from '../conf/BrowserDetect'; class Logger { constructor(conf) { this.initLogger(); - if (conf) { + if (conf && process.env.CHANNEL === 'dev') { this.conf = conf; } if (this.conf.consoleOptions === undefined) {