mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
Silence some logging from hyper. #410
This commit is contained in:
parent
58b6c66c2b
commit
312baa868e
@ -58,10 +58,13 @@ impl log::Log for Logger {
|
||||
|
||||
// Silence these; they're expected on any map using simplified Chinese or kanji. Triggered
|
||||
// by anything using widgetry.
|
||||
if target == "usvg::convert::text::shaper" {
|
||||
if contents.contains("Fallback") {
|
||||
if target == "usvg::convert::text::shaper" && contents.contains("Fallback") {
|
||||
return;
|
||||
}
|
||||
|
||||
// Silence byte counts from hyper.
|
||||
if target == "hyper::proto::h1::io" {
|
||||
return;
|
||||
}
|
||||
|
||||
println!("[{}] {}: {}", record.level(), target, contents);
|
||||
|
Loading…
Reference in New Issue
Block a user