From 2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5 Mon Sep 17 00:00:00 2001 From: Ascrod <32915892+Ascrod@users.noreply.github.com> Date: Mon, 8 Apr 2019 21:06:29 -0400 Subject: Issue #991 Part 6: Services --- services/sync/modules/status.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'services/sync/modules/status.js') diff --git a/services/sync/modules/status.js b/services/sync/modules/status.js index a5b8305b4..1233cbe14 100644 --- a/services/sync/modules/status.js +++ b/services/sync/modules/status.js @@ -125,12 +125,7 @@ this.Status = { resetSync: function resetSync() { // Logger setup. let logPref = PREFS_BRANCH + "log.logger.status"; - let logLevel = "Trace"; - try { - logLevel = Services.prefs.getCharPref(logPref); - } catch (ex) { - // Use default. - } + let logLevel = Services.prefs.getCharPref(logPref, "Trace"); this._log.level = Log.Level[logLevel]; this._log.info("Resetting Status."); -- cgit v1.2.3