You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
Set MAX_LOG_LEVEL
This commit is contained in:
@@ -9,10 +9,15 @@ use anyhow::{bail, Result};
|
|||||||
use log::LevelFilter;
|
use log::LevelFilter;
|
||||||
use nix::libc;
|
use nix::libc;
|
||||||
|
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
|
static MAX_LOG_LEVEL: LevelFilter = LevelFilter::Trace;
|
||||||
|
#[cfg(not(debug_assertions))]
|
||||||
|
static MAX_LOG_LEVEL: LevelFilter = LevelFilter::Info;
|
||||||
|
|
||||||
fn init_android_logger(tag: &str) {
|
fn init_android_logger(tag: &str) {
|
||||||
android_logger::init_once(
|
android_logger::init_once(
|
||||||
android_logger::Config::default()
|
android_logger::Config::default()
|
||||||
.with_max_level(LevelFilter::Trace)
|
.with_max_level(MAX_LOG_LEVEL)
|
||||||
.with_tag(tag),
|
.with_tag(tag),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user