Skip to content

Commit 1260457

Browse files
authored
Merge pull request #20399 from rust-lang/veykril/push-klrwvmzokqwu
Enable warning logs by default
2 parents 0358021 + 45975e5 commit 1260457

File tree

1 file changed

+2
-2
lines changed
  • crates/rust-analyzer/src/bin

1 file changed

+2
-2
lines changed

crates/rust-analyzer/src/bin/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ fn setup_logging(log_file_flag: Option<PathBuf>) -> anyhow::Result<()> {
160160

161161
rust_analyzer::tracing::Config {
162162
writer,
163-
// Deliberately enable all `error` logs if the user has not set RA_LOG, as there is usually
163+
// Deliberately enable all `warn` logs if the user has not set RA_LOG, as there is usually
164164
// useful information in there for debugging.
165-
filter: env::var("RA_LOG").ok().unwrap_or_else(|| "error".to_owned()),
165+
filter: env::var("RA_LOG").ok().unwrap_or_else(|| "warn".to_owned()),
166166
chalk_filter: env::var("CHALK_DEBUG").ok(),
167167
profile_filter: env::var("RA_PROFILE").ok(),
168168
json_profile_filter: std::env::var("RA_PROFILE_JSON").ok(),

0 commit comments

Comments
 (0)