refact: rust backtrace logs (#13467)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2025-11-10 15:43:46 +08:00
committed by GitHub
parent 2d7c6ef21f
commit 934d6c3987
4 changed files with 7 additions and 47 deletions

View File

@@ -70,6 +70,10 @@ fn initialize(app_dir: &str, custom_client_config: &str) {
init_from_env(Env::default().filter_or(DEFAULT_FILTER_ENV, "debug"));
crate::common::test_nat_type();
}
#[cfg(any(target_os = "android", target_os = "ios"))]
{
let _ = crate::common::global_init();
}
#[cfg(not(any(target_os = "android", target_os = "ios")))]
{
// core_main's init_log does not work for flutter since it is only applied to its load_library in main.c