remove dev_release_log_level cfg

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-12-30 17:01:27 +00:00 committed by strawberry
parent 2bbb28bb88
commit c5b94be5b8
8 changed files with 1 additions and 20 deletions

View file

@ -17,7 +17,6 @@ crate-type = [
] ]
[features] [features]
#dev_release_log_level = []
release_max_log_level = [ release_max_log_level = [
"tracing/max_level_trace", "tracing/max_level_trace",
"tracing/release_max_level_info", "tracing/release_max_level_info",

View file

@ -18,7 +18,6 @@ crate-type = [
[features] [features]
element_hacks = [] element_hacks = []
#dev_release_log_level = []
release_max_log_level = [ release_max_log_level = [
"tracing/max_level_trace", "tracing/max_level_trace",
"tracing/release_max_level_info", "tracing/release_max_level_info",

View file

@ -17,7 +17,6 @@ crate-type = [
] ]
[features] [features]
#dev_release_log_level = []
release_max_log_level = [ release_max_log_level = [
"tracing/max_level_trace", "tracing/max_level_trace",
"tracing/release_max_level_info", "tracing/release_max_level_info",

View file

@ -10,9 +10,6 @@ pub use crate::{result::DebugInspect, utils::debug::*};
/// Log event at given level in debug-mode (when debug-assertions are enabled). /// Log event at given level in debug-mode (when debug-assertions are enabled).
/// In release-mode it becomes DEBUG level, and possibly subject to elision. /// In release-mode it becomes DEBUG level, and possibly subject to elision.
///
/// Release-mode can be simulated in debug-mode builds by enabling the feature
/// 'dev_release_log_level'.
#[macro_export] #[macro_export]
macro_rules! debug_event { macro_rules! debug_event {
( $level:expr, $($x:tt)+ ) => { ( $level:expr, $($x:tt)+ ) => {
@ -98,6 +95,4 @@ pub fn type_name<T: ?Sized>() -> &'static str { std::any::type_name::<T>() }
#[must_use] #[must_use]
#[inline] #[inline]
pub const fn logging() -> bool { pub const fn logging() -> bool { cfg!(debug_assertions) }
cfg!(debug_assertions) && cfg!(not(feature = "dev_release_log_level"))
}

View file

@ -17,7 +17,6 @@ crate-type = [
] ]
[features] [features]
#dev_release_log_level = []
release_max_log_level = [ release_max_log_level = [
"tracing/max_level_trace", "tracing/max_level_trace",
"tracing/release_max_level_info", "tracing/release_max_level_info",

View file

@ -55,14 +55,6 @@ brotli_compression = [
console = [ console = [
"conduwuit-service/console", "conduwuit-service/console",
] ]
#dev_release_log_level = [
# "conduwuit-admin/dev_release_log_level",
# "conduwuit-api/dev_release_log_level",
# "conduwuit-core/dev_release_log_level",
# "conduwuit-database/dev_release_log_level",
# "conduwuit-router/dev_release_log_level",
# "conduwuit-service/dev_release_log_level",
#]
direct_tls = [ direct_tls = [
"conduwuit-router/direct_tls" "conduwuit-router/direct_tls"
] ]

View file

@ -17,7 +17,6 @@ crate-type = [
] ]
[features] [features]
#dev_release_log_level = []
release_max_log_level = [ release_max_log_level = [
"tracing/max_level_trace", "tracing/max_level_trace",
"tracing/release_max_level_info", "tracing/release_max_level_info",

View file

@ -24,7 +24,6 @@ console = [
"dep:rustyline-async", "dep:rustyline-async",
"dep:termimad", "dep:termimad",
] ]
#dev_release_log_level = []
element_hacks = [] element_hacks = []
gzip_compression = [ gzip_compression = [
"reqwest/gzip", "reqwest/gzip",