No Bug - Fix Log4Moz xpcshell bustage

This commit is contained in:
Tim Taubert 2013-10-17 11:42:18 -07:00
parent 2366f49f07
commit 458faed3e6
2 changed files with 4 additions and 4 deletions

View File

@ -8,8 +8,8 @@ this.EXPORTED_SYMBOLS = ["BrowserIDManager"];
const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
Cu.import("resource://gre/modules/Log.jsm");
Cu.import("resource://services-common/async.js");
Cu.import("resource://services-common/log4moz.js");
Cu.import("resource://services-common/tokenserverclient.js");
Cu.import("resource://services-crypto/utils.js");
Cu.import("resource://services-sync/identity.js");
@ -24,8 +24,8 @@ Cu.import("resource://services-sync/util.js");
this.BrowserIDManager = function BrowserIDManager(fxaService, tokenServerClient) {
this._fxaService = fxaService;
this._tokenServerClient = tokenServerClient;
this._log = Log4Moz.repository.getLogger("Sync.Identity");
this._log.Level = Log4Moz.Level[Svc.Prefs.get("log.logger.identity")];
this._log = Log.repository.getLogger("Sync.Identity");
this._log.Level = Log.Level[Svc.Prefs.get("log.logger.identity")];
};

View File

@ -45,7 +45,7 @@ let browseridManager = new BrowserIDManager(mockFXA, mockTSC);
function run_test() {
initTestLogging("Trace");
Log4Moz.repository.getLogger("Sync.Identity").level = Log4Moz.Level.Trace;
Log.repository.getLogger("Sync.Identity").level = Log.Level.Trace;
run_next_test();
};