X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Flogger.rs;h=acd6d323e8f319e9b3c84550ab099d2258f486cb;hb=cb83cfe366aaa07179cac1079694e9ea5c6cc9c6;hp=6d42fbf01c64c45a8259ce59d3308f0ab5ec2f6d;hpb=22a0dd5f339058fd6733920ffca0f5eb64db4e32;p=rust-lightning diff --git a/lightning/src/util/logger.rs b/lightning/src/util/logger.rs index 6d42fbf0..acd6d323 100644 --- a/lightning/src/util/logger.rs +++ b/lightning/src/util/logger.rs @@ -86,6 +86,7 @@ impl Level { /// A Record, unit of logging output with Metadata to enable filtering /// Module_path, file, line to inform on log's source +/// (C-not exported) - we convert to a const char* instead #[derive(Clone,Debug)] pub struct Record<'a> { /// The verbosity level of the message. @@ -102,6 +103,7 @@ pub struct Record<'a> { impl<'a> Record<'a> { /// Returns a new Record. + /// (C-not exported) as fmt can't be used in C #[inline] pub fn new(level: Level, args: fmt::Arguments<'a>, module_path: &'a str, file: &'a str, line: u32) -> Record<'a> { Record {