Bug 1351465 - shield-recipe-client: Unconditionally set up logging in bootstrap r=Gijs

MozReview-Commit-ID: 5W7UdpsLyYd

--HG--
extra : rebase_source : 446933ac19330b2404f453b91c09b8bb83e191d0
This commit is contained in:
Mike Cooper 2017-03-29 13:49:37 -07:00
parent bb13410e5c
commit 22ec855caa

View File

@ -57,10 +57,6 @@ this.install = function() {
this.startup = function() {
setDefaultPrefs();
if (!shouldRun) {
return;
}
// Setup logging and listen for changes to logging prefs
LogManager.configure(Services.prefs.getIntPref(PREF_LOGGING_LEVEL));
log = LogManager.getLogger("bootstrap");
@ -68,6 +64,10 @@ this.startup = function() {
CleanupManager.addCleanupHandler(
() => Preferences.ignore(PREF_LOGGING_LEVEL, LogManager.configure));
if (!shouldRun) {
return;
}
RecipeRunner.init();
};