Use APIError::ChannelUnavailable a bit more for consistency
[rust-lightning] / src / util / logger.rs
index bccc8cd21cfabd6df2f230ddd00db1ce2d39e0f1..b05ab10f3110b3446b4d8d0775b6f356d1314307 100644 (file)
@@ -7,9 +7,12 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-/// There is currently 2 ways to filter log messages. First one, by using compilation flag, e.g "max_level_off".
-/// The second one, client-side by implementing check against Record Level field, e.g TestLogger in test_utils.
-/// Each module may have its own Logger or share one.
+//! Log traits live here, which are called throughout the library to provide useful information for
+//! debugging purposes.
+//!
+//! There is currently 2 ways to filter log messages. First one, by using compilation features, e.g "max_level_off".
+//! The second one, client-side by implementing check against Record Level field.
+//! Each module may have its own Logger or share one.
 
 use std::cmp;
 use std::fmt;
@@ -126,7 +129,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};