From 312baa868e9edb2104439d8ba65eab93d4611ee8 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Thu, 26 Nov 2020 15:50:23 -0800 Subject: [PATCH] Silence some logging from hyper. #410 --- abstutil/src/logger.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/abstutil/src/logger.rs b/abstutil/src/logger.rs index e661a10653..027b4a2d69 100644 --- a/abstutil/src/logger.rs +++ b/abstutil/src/logger.rs @@ -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") { - return; - } + 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);