mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-27 09:47:34 +03:00
stop debug tantivy logs
This commit is contained in:
parent
80c72dbf8a
commit
eb050fe428
@ -502,6 +502,12 @@ fn main() {
|
||||
LogTarget::Webview,
|
||||
];
|
||||
tauri_plugin_log::Builder::default()
|
||||
.filter(|metadata| {
|
||||
// only show logs from git_butler
|
||||
metadata.target().starts_with("git_butler")
|
||||
// or if the log level is info or higher
|
||||
|| metadata.level() < log::LevelFilter::Info
|
||||
})
|
||||
.level(match IS_DEV {
|
||||
true => log::LevelFilter::Debug,
|
||||
false => log::LevelFilter::Info,
|
||||
|
Loading…
Reference in New Issue
Block a user