Keep more log lines in case of giant terminals
[dnsseed-rust] / src / printer.rs
index e16bfbb42bb644e3dff324bb10333453261f6b0f..d9cf3752aed96dc3c4e4f4a2e8cef63bf7ab5de6 100644 (file)
@@ -65,9 +65,14 @@ impl Printer {
                                                                store.get_node_count(AddressState::from_num(i).unwrap())
                                                                ).as_bytes()).expect("stdout broken?");
                                        }
+                                       let generations = store.get_bloom_node_count();
+                                       out.write_all(b"Bloom filter generations contain:").expect("stdout broken?");
+                                       for generation in &generations {
+                                               out.write_all(format!(" {}", generation).as_bytes()).expect("stdout broken?");
+                                       }
 
                                        out.write_all(format!(
-                                                       "\nCurrent connections open/in progress: {}\n", stats.connection_count).as_bytes()).expect("stdout broken?");
+                                                       "\n\nCurrent connections open/in progress: {}\n", stats.connection_count).as_bytes()).expect("stdout broken?");
                                        out.write_all(format!(
                                                        "Current block count: {}\n", stats.header_count).as_bytes()).expect("stdout broken?");
 
@@ -126,7 +131,7 @@ impl Printer {
                } else {
                        stats.lines.push_back(line);
                }
-               if stats.lines.len() > 75 {
+               if stats.lines.len() > 150 {
                        stats.lines.pop_front();
                }
        }