mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
ohos: Fix log filtering (#33076)
* Increase default filtering to warn * fix module filtering (filter_builder was never used) Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
This commit is contained in:
parent
69185c4af1
commit
4b3ed4b684
1 changed files with 2 additions and 3 deletions
|
@ -340,12 +340,11 @@ fn initialize_logging_once() {
|
||||||
"compositing::compositor",
|
"compositing::compositor",
|
||||||
"constellation::constellation",
|
"constellation::constellation",
|
||||||
];
|
];
|
||||||
let mut filter_builder = env_filter::Builder::new();
|
|
||||||
for &module in &filters {
|
for &module in &filters {
|
||||||
filter_builder.filter_module(module, log::LevelFilter::Debug);
|
builder.filter_module(module, log::LevelFilter::Debug);
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.filter_level(LevelFilter::Debug).init();
|
builder.filter_level(LevelFilter::Warn).init();
|
||||||
|
|
||||||
info!("Servo Register callback called!");
|
info!("Servo Register callback called!");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue