Skip to content

Commit

Permalink
chore: use debug as default app log level when debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Feb 14, 2024
1 parent ef9673b commit e6b3356
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions backend/tauri/src/cmds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ use sysproxy::Sysproxy;

use tauri::api::dialog::FileDialogBuilder;

use self::clash::proxies::ProxiesGuard;

type CmdResult<T = ()> = Result<T, String>;

#[tauri::command]
Expand Down
4 changes: 4 additions & 0 deletions backend/tauri/src/config/verge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ impl IVerge {
false => Some("en".into()),
true => Some("zh".into()),
},
#[cfg(debug_assertions)]
app_log_level: Some("debug".into()),
#[cfg(not(debug_assertions))]
app_log_level: Some("info".into()),
theme_mode: Some("system".into()),
theme_blur: Some(false),
traffic_graph: Some(true),
Expand Down

0 comments on commit e6b3356

Please sign in to comment.