X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2Fsrc%2Futils%2Ftest_logger.rs;h=f8c96f99bd1c8ddb9c1f9b28d8d7b5fbe67cc27b;hb=ce5a9f528a96d1c10a992a1e89a27d58e5aecf86;hp=cd037ad8187d8c42895b1a92abd3a37dfe2b5c8f;hpb=0d755456328d68151cdb66a1d8280912de7eb50c;p=rust-lightning diff --git a/fuzz/src/utils/test_logger.rs b/fuzz/src/utils/test_logger.rs index cd037ad8..f8c96f99 100644 --- a/fuzz/src/utils/test_logger.rs +++ b/fuzz/src/utils/test_logger.rs @@ -1,8 +1,17 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use lightning::util::logger::{Logger, Record}; use std::sync::{Arc, Mutex}; use std::io::Write; -pub trait Output : Clone + Sync + Send + 'static { +pub trait Output : Clone + 'static { fn locked_write(&self, data: &[u8]); } @@ -49,7 +58,7 @@ impl<'a, Out: Output> Write for LockedWriteAdapter<'a, Out> { impl Logger for TestLogger { 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(); } }