Remove implicit Record import requirement in logging macros

This commit is contained in:
Matt Corallo 2018-08-20 12:56:17 -04:00
parent 7743cbdf14
commit 42086c94a0
5 changed files with 5 additions and 5 deletions

View file

@ -23,7 +23,7 @@ use chain::chaininterface::{FeeEstimator,ConfirmationTarget};
use chain::transaction::OutPoint; use chain::transaction::OutPoint;
use util::{transaction_utils,rng}; use util::{transaction_utils,rng};
use util::sha2::Sha256; use util::sha2::Sha256;
use util::logger::{Logger, Record}; use util::logger::Logger;
use util::errors::APIError; use util::errors::APIError;
use std; use std;

View file

@ -20,7 +20,7 @@ use ln::msgs::{HandleError,ChannelMessageHandler,MsgEncodable,MsgDecodable};
use util::{byte_utils, events, internal_traits, rng}; use util::{byte_utils, events, internal_traits, rng};
use util::sha2::Sha256; use util::sha2::Sha256;
use util::chacha20poly1305rfc::ChaCha20; use util::chacha20poly1305rfc::ChaCha20;
use util::logger::{Logger, Record}; use util::logger::Logger;
use util::errors::APIError; use util::errors::APIError;
use crypto; use crypto;

View file

@ -5,7 +5,7 @@ use ln::msgs::{MsgEncodable,MsgDecodable};
use ln::peer_channel_encryptor::{PeerChannelEncryptor,NextNoiseStep}; use ln::peer_channel_encryptor::{PeerChannelEncryptor,NextNoiseStep};
use util::byte_utils; use util::byte_utils;
use util::events::{EventsProvider,Event}; use util::events::{EventsProvider,Event};
use util::logger::{Logger, Record}; use util::logger::Logger;
use std::collections::{HashMap,LinkedList}; use std::collections::{HashMap,LinkedList};
use std::sync::{Arc, Mutex}; use std::sync::{Arc, Mutex};

View file

@ -126,7 +126,7 @@ pub trait Logger: Sync + Send {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use util::logger::{Logger, Level, Record}; use util::logger::{Logger, Level};
use util::test_utils::TestLogger; use util::test_utils::TestLogger;
use std::sync::{Arc}; use std::sync::{Arc};

View file

@ -52,7 +52,7 @@ macro_rules! log_funding_channel_id {
macro_rules! log_internal { macro_rules! log_internal {
($self: ident, $lvl:expr, $($arg:tt)+) => ( ($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!()));
); );
} }