diff options
author | Aria Shrimpton <me@aria.rip> | 2024-03-06 16:41:17 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-03-06 16:41:17 +0000 |
commit | 7648d719cc9da481e4c42a92a428f507699249d1 (patch) | |
tree | 00f24fb14b2a60f884c8fecd2099499cfcc54c27 | |
parent | bbfdd5ec7404a28ae735884db3d98f2eebc48fa1 (diff) |
only print benchmark output on trace log level
-rw-r--r-- | src/crates/candelabra/src/cost/benchmark.rs | 2 | ||||
-rw-r--r-- | 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<String> { 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 |