tracing: Use don't log on hot paths without trace-level

This commit is contained in:
Victoria Brekenfeld 2023-03-03 19:34:41 +01:00
parent 9b416b5779
commit 3f462e3eb7
7 changed files with 20 additions and 20 deletions

View file

@ -17,9 +17,9 @@ pub fn init_logger() -> Result<()> {
let filter = EnvFilter::try_from_default_env()
.unwrap_or_else(|_| {
EnvFilter::new(if cfg!(debug_assertions) {
"warn"
"info"
} else {
"error"
"warn"
})
})
.add_directive(Directive::from_str("cosmic_text=error").unwrap())