Find payment bucket in calculate_success_probability_times_billion
[rust-lightning] / lightning / src / util / test_utils.rs
index e51bbb9271983986650ac31fef823473ee498f0a..b6f4aa5d43d4d59b1acb311a89caf09729e680ec 100644 (file)
@@ -738,7 +738,7 @@ impl Logger for TestLogger {
        fn log(&self, record: &Record) {
                *self.lines.lock().unwrap().entry((record.module_path.to_string(), format!("{}", record.args))).or_insert(0) += 1;
                if record.level >= self.level {
-                       #[cfg(feature = "std")]
+                       #[cfg(all(not(ldk_bench), feature = "std"))]
                        println!("{:<5} {} [{} : {}, {}] {}", record.level.to_string(), self.id, record.module_path, record.file, record.line, record.args);
                }
        }