X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Fmacro_logger.rs;h=123452806107c1a4c957ebe5a80c2994dea15fc5;hb=336c77c738c792eb8cc1b2ee0e78ff96f106f753;hp=55b11604d94dec1e4af4c36eb0804039cb764978;hpb=a634fd1dad468e4af51b508b3a0245f9655d129e;p=rust-lightning diff --git a/lightning/src/util/macro_logger.rs b/lightning/src/util/macro_logger.rs index 55b11604..12345280 100644 --- a/lightning/src/util/macro_logger.rs +++ b/lightning/src/util/macro_logger.rs @@ -7,11 +7,9 @@ // You may not use this file except in accordance with one or both of these // licenses. -use crate::chain::transaction::OutPoint; -use crate::ln::ChannelId; +use crate::ln::types::ChannelId; use crate::sign::SpendableOutputDescriptor; -use bitcoin::hash_types::Txid; use bitcoin::blockdata::transaction::Transaction; use crate::routing::router::Route; @@ -39,13 +37,6 @@ macro_rules! log_bytes { } } -pub(crate) struct DebugFundingChannelId<'a>(pub &'a Txid, pub u16); -impl<'a> core::fmt::Display for DebugFundingChannelId<'a> { - fn fmt(&self, f: &mut core::fmt::Formatter) -> Result<(), core::fmt::Error> { - ChannelId::v1_from_funding_outpoint(OutPoint { txid: self.0.clone(), index: self.1 }).fmt(f) - } -} - pub(crate) struct DebugFundingInfo<'a>(pub &'a ChannelId); impl<'a> core::fmt::Display for DebugFundingInfo<'a> { fn fmt(&self, f: &mut core::fmt::Formatter) -> Result<(), core::fmt::Error> { @@ -157,7 +148,7 @@ macro_rules! log_spendable { #[macro_export] macro_rules! log_internal { ($logger: expr, $lvl:expr, $($arg:tt)+) => ( - $logger.log($crate::util::logger::Record::new($lvl, None, None, format_args!($($arg)+), module_path!(), file!(), line!())) + $logger.log($crate::util::logger::Record::new($lvl, None, None, format_args!($($arg)+), module_path!(), file!(), line!(), None)) ); }