stop debug tantivy logs

This commit is contained in:
Nikita Galaiko 2023-04-20 08:59:50 +02:00
parent 80c72dbf8a
commit eb050fe428

View File

@ -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,