mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
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:
parent
bb13410e5c
commit
22ec855caa
@ -57,10 +57,6 @@ this.install = function() {
|
|||||||
this.startup = function() {
|
this.startup = function() {
|
||||||
setDefaultPrefs();
|
setDefaultPrefs();
|
||||||
|
|
||||||
if (!shouldRun) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Setup logging and listen for changes to logging prefs
|
// Setup logging and listen for changes to logging prefs
|
||||||
LogManager.configure(Services.prefs.getIntPref(PREF_LOGGING_LEVEL));
|
LogManager.configure(Services.prefs.getIntPref(PREF_LOGGING_LEVEL));
|
||||||
log = LogManager.getLogger("bootstrap");
|
log = LogManager.getLogger("bootstrap");
|
||||||
@ -68,6 +64,10 @@ this.startup = function() {
|
|||||||
CleanupManager.addCleanupHandler(
|
CleanupManager.addCleanupHandler(
|
||||||
() => Preferences.ignore(PREF_LOGGING_LEVEL, LogManager.configure));
|
() => Preferences.ignore(PREF_LOGGING_LEVEL, LogManager.configure));
|
||||||
|
|
||||||
|
if (!shouldRun) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
RecipeRunner.init();
|
RecipeRunner.init();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user