mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
Remove implicit Record import requirement in logging macros
This commit is contained in:
parent
7743cbdf14
commit
42086c94a0
5 changed files with 5 additions and 5 deletions
|
@ -23,7 +23,7 @@ use chain::chaininterface::{FeeEstimator,ConfirmationTarget};
|
|||
use chain::transaction::OutPoint;
|
||||
use util::{transaction_utils,rng};
|
||||
use util::sha2::Sha256;
|
||||
use util::logger::{Logger, Record};
|
||||
use util::logger::Logger;
|
||||
use util::errors::APIError;
|
||||
|
||||
use std;
|
||||
|
|
|
@ -20,7 +20,7 @@ use ln::msgs::{HandleError,ChannelMessageHandler,MsgEncodable,MsgDecodable};
|
|||
use util::{byte_utils, events, internal_traits, rng};
|
||||
use util::sha2::Sha256;
|
||||
use util::chacha20poly1305rfc::ChaCha20;
|
||||
use util::logger::{Logger, Record};
|
||||
use util::logger::Logger;
|
||||
use util::errors::APIError;
|
||||
|
||||
use crypto;
|
||||
|
|
|
@ -5,7 +5,7 @@ use ln::msgs::{MsgEncodable,MsgDecodable};
|
|||
use ln::peer_channel_encryptor::{PeerChannelEncryptor,NextNoiseStep};
|
||||
use util::byte_utils;
|
||||
use util::events::{EventsProvider,Event};
|
||||
use util::logger::{Logger, Record};
|
||||
use util::logger::Logger;
|
||||
|
||||
use std::collections::{HashMap,LinkedList};
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
|
|
@ -126,7 +126,7 @@ pub trait Logger: Sync + Send {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use util::logger::{Logger, Level, Record};
|
||||
use util::logger::{Logger, Level};
|
||||
use util::test_utils::TestLogger;
|
||||
use std::sync::{Arc};
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ macro_rules! log_funding_channel_id {
|
|||
|
||||
macro_rules! log_internal {
|
||||
($self: ident, $lvl:expr, $($arg:tt)+) => (
|
||||
&$self.logger.log(&Record::new($lvl, format_args!($($arg)+), module_path!(), file!(), line!()));
|
||||
&$self.logger.log(&::util::logger::Record::new($lvl, format_args!($($arg)+), module_path!(), file!(), line!()));
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue