Skip to content

Commit

Permalink
Merge pull request #72 from Gawdl3y/feat/log-level
Browse files Browse the repository at this point in the history
Only log debug level and higher for release builds
  • Loading branch information
Gawdl3y authored Dec 25, 2023
2 parents fdaec3b + 8c3acc2 commit 3c91461
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/tauri-app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ fn main() -> anyhow::Result<()> {
tauri_plugin_log::Builder::default()
.targets(vec![LogTarget::Stdout, LogTarget::Webview])
.with_colors(ColoredLevelConfig::default())
.level_for("rustls", log::LevelFilter::Debug)
.build()
},
#[cfg(not(debug_assertions))]
{
tauri_plugin_log::Builder::default()
.targets(vec![LogTarget::Stdout, LogTarget::LogDir])
.level(log::LevelFilter::Debug)
.build()
},
)
Expand Down

0 comments on commit 3c91461

Please sign in to comment.