зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 3d7050fc3010 (bug 1874215) for causing build bustages. CLOSED TREE
This commit is contained in:
Родитель
41645fcb5c
Коммит
dd9840b4c3
|
@ -46,6 +46,11 @@ impl AppServicesLogger {
|
|||
xpcom_method!(register => Register(target: *const nsAString, logger: *const mozIServicesLogSink));
|
||||
fn register(&self, target: &nsAString, logger: &mozIServicesLogSink) -> Result<(), nsresult> {
|
||||
let log_sink_logger = LogSink::with_logger(Some(logger))?;
|
||||
let max_level = cmp::max(log::max_level(), log_sink_logger.max_level);
|
||||
|
||||
// Note: This will only work if the max_level is lower than the compile-time
|
||||
// max_level_* filter.
|
||||
log::set_max_level(max_level);
|
||||
|
||||
ensure_observing_shutdown();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче