Commit 2243729b82

2243729b822318ca89e653caf3343c09ee660ed3

parent: 4963b25ab8

Unregistered key

Ulyssa <git@ulyssa.dev> · 2026-10-02 02:42 UTC
committer: <noreply@github.com>

Set default `log_level` to `off` (#774)

Layout: unified · split

src/config/mod.rs +1 −5
@@ -71,11 +71,7 @@ const DEFAULT_ICON_ENC: Cow<'static, str> = Cow::Borrowed("[E] ");
7171const DEFAULT_ICON_UNENC: Cow<'static, str> = Cow::Borrowed("[U] ");
7272const DEFAULT_ICON_UNKNOWN: Cow<'static, str> = Cow::Borrowed("[?] ");
7373
74const DEFAULT_LOG_LEVEL: &str = if cfg!(feature = "max_level_error") {
75 "error"
76} else {
77 "warn"
78};
74const DEFAULT_LOG_LEVEL: &str = "off";
7975
8076fn is_profile_char(c: char) -> bool {
8177 c.is_ascii_alphanumeric() || c == '.' || c == '-'
src/main.rs +2 −1
@@ -43,6 +43,7 @@ use ratatui::Terminal;
4343use ratatui::backend::CrosstermBackend;
4444use tokio::sync::Mutex as AsyncMutex;
4545use tracing::Level;
46use tracing::level_filters::LevelFilter;
4647use tracing_subscriber::{EnvFilter, FmtSubscriber};
4748
4849use crate::base::{HomeserverAction, KeysAction};
@@ -1061,7 +1062,7 @@ fn setup_logging(settings: &ApplicationSettings) -> tracing_appender::non_blocki
10611062 .unwrap_or_else(print_exit)
10621063 } else {
10631064 EnvFilter::builder()
1064 .with_default_directive(Level::WARN.into())
1065 .with_default_directive(LevelFilter::OFF.into())
10651066 .parse(log_level)
10661067 .map_err(|err| format!("Unable to parse `log_level`: {err}"))
10671068 .unwrap_or_else(print_exit)