From 7648d719cc9da481e4c42a92a428f507699249d1 Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Wed, 6 Mar 2024 16:41:17 +0000 Subject: only print benchmark output on trace log level --- src/crates/candelabra/src/cost/benchmark.rs | 2 +- src/crates/primrose/src/library_specs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crates/candelabra/src/cost/benchmark.rs b/src/crates/candelabra/src/cost/benchmark.rs index 2997c9e..b67d6a3 100644 --- a/src/crates/candelabra/src/cost/benchmark.rs +++ b/src/crates/candelabra/src/cost/benchmark.rs @@ -98,7 +98,7 @@ pub(crate) fn tee_output(mut child: Child) -> Result { while let Ok(None) = child.try_wait() { let n = stdout.read(&mut buf)?; let read = &buf[0..n]; - if log_enabled!(Level::Debug) { + if log_enabled!(Level::Trace) { io::stdout().write_all(read)?; } output.extend(read); diff --git a/src/crates/primrose/src/library_specs.rs b/src/crates/primrose/src/library_specs.rs index 62b29de..d65f53e 100644 --- a/src/crates/primrose/src/library_specs.rs +++ b/src/crates/primrose/src/library_specs.rs @@ -104,7 +104,7 @@ impl LibSpec { .filter(|path| !path.contains("/mod.rs") && !path.contains("/lib.rs")) .flat_map(|path| match Self::read(&path) { Ok(spec) => Some((spec.struct_name.clone(), spec)), - Err(e) => { + Err(_) => { debug!( "Failed to process library module {}. Continuing anyway.", &path -- cgit v1.2.3