Backed out changeset 3d7050fc3010 (bug 1874215) for causing build bustages. CLOSED TREE

This commit is contained in:
Butkovits Atila 2024-01-23 01:04:15 +02:00
Родитель 41645fcb5c
Коммит dd9840b4c3
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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();