Commit 2243729b82
Unregistered key
Layout: unified · split
src/config/mod.rs +1 −5
| @@ -71,11 +71,7 @@ const DEFAULT_ICON_ENC: Cow<'static, str> = Cow::Borrowed("[E] "); | ||
| 71 | 71 | const DEFAULT_ICON_UNENC: Cow<'static, str> = Cow::Borrowed("[U] "); |
| 72 | 72 | const DEFAULT_ICON_UNKNOWN: Cow<'static, str> = Cow::Borrowed("[?] "); |
| 73 | 73 | |
| 74 | const DEFAULT_LOG_LEVEL: &str = if cfg!(feature = "max_level_error") { | |
| 75 | "error" | |
| 76 | } else { | |
| 77 | "warn" | |
| 78 | }; | |
| 74 | const DEFAULT_LOG_LEVEL: &str = "off"; | |
| 79 | 75 | |
| 80 | 76 | fn is_profile_char(c: char) -> bool { |
| 81 | 77 | c.is_ascii_alphanumeric() || c == '.' || c == '-' |
src/main.rs +2 −1
| @@ -43,6 +43,7 @@ use ratatui::Terminal; | ||
| 43 | 43 | use ratatui::backend::CrosstermBackend; |
| 44 | 44 | use tokio::sync::Mutex as AsyncMutex; |
| 45 | 45 | use tracing::Level; |
| 46 | use tracing::level_filters::LevelFilter; | |
| 46 | 47 | use tracing_subscriber::{EnvFilter, FmtSubscriber}; |
| 47 | 48 | |
| 48 | 49 | use crate::base::{HomeserverAction, KeysAction}; |
| @@ -1061,7 +1062,7 @@ fn setup_logging(settings: &ApplicationSettings) -> tracing_appender::non_blocki | ||
| 1061 | 1062 | .unwrap_or_else(print_exit) |
| 1062 | 1063 | } else { |
| 1063 | 1064 | EnvFilter::builder() |
| 1064 | .with_default_directive(Level::WARN.into()) | |
| 1065 | .with_default_directive(LevelFilter::OFF.into()) | |
| 1065 | 1066 | .parse(log_level) |
| 1066 | 1067 | .map_err(|err| format!("Unable to parse `log_level`: {err}")) |
| 1067 | 1068 | .unwrap_or_else(print_exit) |