X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Flogger.rs;h=e48cefaa0443ff9c0a1f731a35fdc73fba57d17b;hb=9bac73b4f3c922b790d1ec844413c4567149f4ca;hp=d1c768dc7fe19ead4480d9743fef8a7d8fbd4fd2;hpb=e5c0c62c178a33957d9dac13c74a37bf97d618cd;p=rust-lightning diff --git a/lightning/src/util/logger.rs b/lightning/src/util/logger.rs index d1c768dc..e48cefaa 100644 --- a/lightning/src/util/logger.rs +++ b/lightning/src/util/logger.rs @@ -158,6 +158,9 @@ pub trait Logger { } /// Adds relevant context to a [`Record`] before passing it to the wrapped [`Logger`]. +/// +/// This is not exported to bindings users as lifetimes are problematic and there's little reason +/// for this to be used downstream anyway. pub struct WithContext<'a, L: Deref> where L::Target: Logger { /// The logger to delegate to after adding context to the record. logger: &'a L,