Only allow in-code log overrides if we're running in dev

This commit is contained in:
Tamius Han 2020-01-20 20:07:01 +01:00
parent 5372acdf07
commit d633cb3b97

View File

@ -4,7 +4,7 @@ import currentBrowser from '../conf/BrowserDetect';
class Logger { class Logger {
constructor(conf) { constructor(conf) {
this.initLogger(); this.initLogger();
if (conf) { if (conf && process.env.CHANNEL === 'dev') {
this.conf = conf; this.conf = conf;
} }
if (this.conf.consoleOptions === undefined) { if (this.conf.consoleOptions === undefined) {