зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1914469 - [remote] Reuse the logLevel lazy getter to compute Log.verbose r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D219920
This commit is contained in:
Родитель
9aff670028
Коммит
9125598ea4
|
@ -74,9 +74,6 @@ export class Log {
|
|||
* See https://bugzilla.mozilla.org/show_bug.cgi?id=1828395
|
||||
*/
|
||||
static get verbose() {
|
||||
// we can't use Preferences.sys.mjs before first paint,
|
||||
// see ../browser/base/content/test/performance/browser_startup.js
|
||||
const level = Services.prefs.getStringPref(PREF_REMOTE_LOG_LEVEL, "Info");
|
||||
return StdLog.Level[level] >= StdLog.Level.Info;
|
||||
return StdLog.Level[lazy.logLevel] >= StdLog.Level.Info;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче