From 11d81683e3a8cb5ec3ffcba72f97e80bfd79b3c0 Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 26 Jul 2023 22:51:07 -0500 Subject: [PATCH] Add logging around parallelism --- src/requests.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/requests.rs b/src/requests.rs index be59bcd..c8c4199 100644 --- a/src/requests.rs +++ b/src/requests.rs @@ -464,11 +464,14 @@ impl Spawner { pub(crate) fn build() -> std::io::Result { let threads = std::thread::available_parallelism() .map(usize::from) + .map_err(|e| tracing::warn!("Failed to get parallelism, {e}")) .unwrap_or(1); let (sender, receiver) = flume::bounded(8); let (shutdown, shutdown_rx) = flume::bounded(threads); + tracing::warn!("Launching {threads} signature threads"); + let threads = (0..threads) .map(|i| { let receiver = receiver.clone();