From 5dd7026383c90a4de364885585cb073c2fd2dde6 Mon Sep 17 00:00:00 2001 From: Andronik Date: Mon, 26 Sep 2022 14:39:56 +0200 Subject: [PATCH] orchestra: hide subsystem cycle warnings by default (#6047) --- polkadot/node/orchestra/proc-macro/src/graph.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/polkadot/node/orchestra/proc-macro/src/graph.rs b/polkadot/node/orchestra/proc-macro/src/graph.rs index 2fd07e5ec7..13406efaf0 100644 --- a/polkadot/node/orchestra/proc-macro/src/graph.rs +++ b/polkadot/node/orchestra/proc-macro/src/graph.rs @@ -119,11 +119,11 @@ impl<'a> ConnectionGraph<'a> { } })); match sccs.len() { - 0 => println!("✅ Found no strongly connected components, hence no cycles exist"), - 1 => println!( + 0 => eprintln!("✅ Found no strongly connected components, hence no cycles exist"), + 1 => eprintln!( "⚡ Found 1 strongly connected component which includes at least one cycle" ), - n => println!( + n => eprintln!( "⚡ Found {n} strongly connected components which includes at least one cycle each" ), } @@ -169,7 +169,7 @@ impl<'a> ConnectionGraph<'a> { } } let acc = String::from_iter(acc); - println!("cycle({print_idx:03}) ∈ {scc_tag}: {acc} *"); + eprintln!("cycle({print_idx:03}) ∈ {scc_tag}: {acc} *"); } sccs