Issue #991 Part 6: Services

This commit is contained in:
Ascrod 2019-04-08 21:06:29 -04:00 committed by Roy Tam
commit c54c6d3bd2
3 changed files with 3 additions and 15 deletions

View file

@ -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.");