Răsfoiți Sursa

lilith: Purge debug in scope of spawned network

parazyd 3 ani în urmă
părinte
comite
e5f70129c3
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      bin/lilith/src/main.rs

+ 2 - 2
bin/lilith/src/main.rs

@@ -139,10 +139,10 @@ impl Lilith {
             // We'll pick up to 10 hosts every minute and try to connect to
             // We'll pick up to 10 hosts every minute and try to connect to
             // them. If we can't reach them, we'll remove them from our set.
             // them. If we can't reach them, we'll remove them from our set.
             sleep(60).await;
             sleep(60).await;
-            debug!("Picking random hosts from db");
+            debug!("[{}] Picking random hosts from db", name);
             let lottery_winners = p2p.clone().hosts().get_n_random(10).await;
             let lottery_winners = p2p.clone().hosts().get_n_random(10).await;
             let win_str: Vec<&str> = lottery_winners.iter().map(|x| x.as_str()).collect();
             let win_str: Vec<&str> = lottery_winners.iter().map(|x| x.as_str()).collect();
-            debug!("Got: {:?}", win_str);
+            debug!("[{}] Got: {:?}", name, win_str);
 
 
             let mut tasks = vec![];
             let mut tasks = vec![];