Skip to content
Permalink
Browse files

clean up log.js

  • Loading branch information...
josechoy committed Apr 23, 2018
1 parent 1ed0727 commit 17341d42deb5cdffe982a2069355d7e31eb083a0
Showing with 4 additions and 6 deletions.
  1. +0 −2 addon/bootstrap.js
  2. +4 −4 addon/webextension/log.js
@@ -12,8 +12,6 @@ ChromeUtils.defineModuleGetter(this, "AddonManager",
"resource://gre/modules/AddonManager.jsm");
ChromeUtils.defineModuleGetter(this, "AppConstants",
"resource://gre/modules/AppConstants.jsm");
ChromeUtils.defineModuleGetter(this, "Console",
"resource://gre/modules/Console.jsm");
ChromeUtils.defineModuleGetter(this, "CustomizableUI",
"resource:///modules/CustomizableUI.jsm");
ChromeUtils.defineModuleGetter(this, "LegacyExtensionsUtils",
@@ -28,19 +28,19 @@ this.log = (function() {
exports.debug = exports.info = exports.warn = exports.error = stub;

if (shouldLog.debug) {
exports.debug = console.debug.bind(console);
exports.debug = console.debug;
}

if (shouldLog.info) {
exports.info = console.info.bind(console);
exports.info = console.info;
}

if (shouldLog.warn) {
exports.warn = console.warn.bind(console);
exports.warn = console.warn;
}

if (shouldLog.error) {
exports.error = console.error.bind(console);
exports.error = console.error;
}

return exports;

0 comments on commit 17341d4

Please sign in to comment.
You can’t perform that action at this time.