feat: 调整日志级别

This commit is contained in:
niushuai233 2022-10-27 11:41:28 +08:00
parent d695239b6d
commit 5c1da90259

View File

@ -58,12 +58,12 @@ public class App {
private static void checkRoot(Activity activity) { private static void checkRoot(Activity activity) {
String which_su = RuntimeUtil.execForStr(WHICH_SU); String which_su = RuntimeUtil.execForStr(WHICH_SU);
XLog.i(Keys.Tag.APP_INIT, "检查root权限... {} ==> {}", WHICH_SU, which_su); XLog.v(Keys.Tag.APP_INIT, "检查root权限... {} ==> {}", WHICH_SU, which_su);
if (StrUtil.isNotEmpty(which_su)) { if (StrUtil.isNotEmpty(which_su)) {
Global.HAS_ROOT = true; Global.HAS_ROOT = true;
XLog.i(Keys.Tag.APP_INIT, "当前设备具有root权限"); XLog.v(Keys.Tag.APP_INIT, "当前设备具有root权限");
} else { } else {
XLog.i(Keys.Tag.APP_INIT, "当前设备不具有root权限"); XLog.v(Keys.Tag.APP_INIT, "当前设备不具有root权限");
} }
} }
@ -139,7 +139,7 @@ public class App {
// 内存存储日志根目录 // 内存存储日志根目录
Global.LOG_ROOT_PATH = rootPath; Global.LOG_ROOT_PATH = rootPath;
XLog.i(Keys.Tag.APP_INIT, "日志存储位置: {}", Global.LOG_ROOT_PATH); XLog.v(Keys.Tag.APP_INIT, "日志存储位置: {}", Global.LOG_ROOT_PATH);
} }
private static String getRootPath() { private static String getRootPath() {