projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
073afbb
)
Don't print file paths in fuzz logger as they can be very long
author
Matt Corallo
<git@bluematt.me>
Fri, 18 Jun 2021 20:21:42 +0000
(20:21 +0000)
committer
Matt Corallo
<git@bluematt.me>
Wed, 23 Jun 2021 01:35:23 +0000
(
01:35
+0000)
fuzz/src/utils/test_logger.rs
patch
|
blob
|
history
diff --git
a/fuzz/src/utils/test_logger.rs
b/fuzz/src/utils/test_logger.rs
index 5046869c0a9abe1c92a0ee57d86a3f489081d760..f8c96f99bd1c8ddb9c1f9b28d8d7b5fbe67cc27b 100644
(file)
--- a/
fuzz/src/utils/test_logger.rs
+++ b/
fuzz/src/utils/test_logger.rs
@@
-58,7
+58,7
@@
impl<'a, Out: Output> Write for LockedWriteAdapter<'a, Out> {
impl<Out: Output> Logger for TestLogger<Out> {
fn log(&self, record: &Record) {
write!(LockedWriteAdapter(&self.out),
impl<Out: Output> Logger for TestLogger<Out> {
fn log(&self, record: &Record) {
write!(LockedWriteAdapter(&self.out),
- "{:<5} {} [{} : {}
, {}] {}\n", record.level.to_string(), self.id, record.module_path, record.file
, record.line, record.args)
+ "{:<5} {} [{} : {}
] {}\n", record.level.to_string(), self.id, record.module_path
, record.line, record.args)
.unwrap();
}
}
.unwrap();
}
}