mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix(core): manage mobile logs, fix Android logcat filtering (#5659)
This commit is contained in:
committed by
GitHub
parent
f6f9192aa5
commit
6dcb7fbb81
@@ -95,6 +95,7 @@ pub fn get_config(
|
||||
|
||||
let raw = RawAndroidConfig {
|
||||
features: android_options.features.clone(),
|
||||
logcat_filter_specs: vec!["RustStdoutStderr".into()],
|
||||
..Default::default()
|
||||
};
|
||||
let config = AndroidConfig::from_raw(app.clone(), Some(raw)).unwrap();
|
||||
|
||||
@@ -16,7 +16,7 @@ use cargo_mobile::{
|
||||
env::Env,
|
||||
},
|
||||
config::app::App,
|
||||
opts::{NoiseLevel, Profile},
|
||||
opts::{FilterLevel, NoiseLevel, Profile},
|
||||
};
|
||||
|
||||
use std::env::set_var;
|
||||
@@ -189,7 +189,11 @@ fn run(
|
||||
env,
|
||||
noise_level,
|
||||
profile,
|
||||
None,
|
||||
Some(match noise_level {
|
||||
NoiseLevel::Polite => FilterLevel::Info,
|
||||
NoiseLevel::LoudAndProud => FilterLevel::Debug,
|
||||
NoiseLevel::FranklyQuitePedantic => FilterLevel::Verbose,
|
||||
}),
|
||||
build_app_bundle,
|
||||
false,
|
||||
".MainActivity".into(),
|
||||
|
||||
Reference in New Issue
Block a user