]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix compilation with the max_level_trace feature
authorMatt Corallo <git@bluematt.me>
Tue, 23 Nov 2021 23:03:13 +0000 (23:03 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 23 Nov 2021 23:03:13 +0000 (23:03 +0000)
lightning/src/util/macro_logger.rs

index 0210229de3a6db5fb33e9f96ffa845b4c6aa3a40..2dd73d8279cff447576817450601c85112adce74 100644 (file)
@@ -177,7 +177,7 @@ macro_rules! log_given_level {
                        #[cfg(not(any(feature = "max_level_off", feature = "max_level_error", feature = "max_level_warn", feature = "max_level_info", feature = "max_level_debug", feature = "max_level_trace")))]
                        $crate::util::logger::Level::Gossip => log_internal!($logger, $lvl, $($arg)*),
 
-                       #[cfg(any(feature = "max_level_off", feature = "max_level_error", feature = "max_level_warn", feature = "max_level_info", feature = "max_level_debug"))]
+                       #[cfg(any(feature = "max_level_off", feature = "max_level_error", feature = "max_level_warn", feature = "max_level_info", feature = "max_level_debug", feature = "max_level_trace"))]
                        _ => {
                                // The level is disabled at compile-time
                        },