diff options
Diffstat (limited to 'crates/tor-circmgr/src/hspool.rs')
| -rw-r--r-- | crates/tor-circmgr/src/hspool.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/crates/tor-circmgr/src/hspool.rs b/crates/tor-circmgr/src/hspool.rs index 5c6076d2a..ace838e22 100644 --- a/crates/tor-circmgr/src/hspool.rs +++ b/crates/tor-circmgr/src/hspool.rs @@ -599,11 +599,13 @@ async fn launch_hs_circuits_as_needed<R: Runtime>( let n_to_launch = circs_to_launch.n_to_launch(); let mut max_attempts = n_to_launch * 2; - debug!( - "launching {} STUB and {} STUB+ circuits", - circs_to_launch.stub(), - circs_to_launch.ext_stub() - ); + if n_to_launch > 0 { + debug!( + "launching {} STUB and {} STUB+ circuits", + circs_to_launch.stub(), + circs_to_launch.ext_stub() + ); + } // TODO: refactor this to launch the circuits in parallel 'inner: while circs_to_launch.n_to_launch() > 0 { |
