diff options
Diffstat (limited to 'services/sync/modules/userapi.js')
-rw-r--r-- | services/sync/modules/userapi.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/services/sync/modules/userapi.js b/services/sync/modules/userapi.js index d09a98d5d..ec77d63e2 100644 --- a/services/sync/modules/userapi.js +++ b/services/sync/modules/userapi.js @@ -10,7 +10,7 @@ this.EXPORTED_SYMBOLS = [ const {utils: Cu} = Components; -Cu.import("resource://services-common/log4moz.js"); +Cu.import("resource://gre/modules/Log.jsm"); Cu.import("resource://services-common/rest.js"); Cu.import("resource://services-common/utils.js"); Cu.import("resource://services-sync/identity.js"); @@ -24,8 +24,8 @@ Cu.import("resource://services-sync/util.js"); * Instances are constructed with the base URI of the service. */ this.UserAPI10Client = function UserAPI10Client(baseURI) { - this._log = Log4Moz.repository.getLogger("Sync.UserAPI"); - this._log.level = Log4Moz.Level[Svc.Prefs.get("log.logger.userapi")]; + this._log = Log.repository.getLogger("Sync.UserAPI"); + this._log.level = Log.Level[Svc.Prefs.get("log.logger.userapi")]; this.baseURI = baseURI; } @@ -165,7 +165,7 @@ UserAPI10Client.prototype = { return; } - let error = new Error("Sync node retrieval failed."); + error = new Error("Sync node retrieval failed."); switch (response.status) { case 400: error.denied = true; @@ -214,7 +214,7 @@ UserAPI10Client.prototype = { return; } - let error = new Error("Could not create user."); + error = new Error("Could not create user."); error.body = response.body; cb(error, null); |