diff --git a/src/sysboostd/config.rs b/src/sysboostd/config.rs index ba197bf61912fca10e84e32778736f628f5eebe7..d99862ec693c8699cbd1961368ab4720f1cbc670 100644 --- a/src/sysboostd/config.rs +++ b/src/sysboostd/config.rs @@ -112,7 +112,7 @@ pub fn parse_sysinit_config() { let conf_file = match Ini::load_from_file(SYSBOOST_CONFIG_PATH){ Ok(c) => {c} Err(e) => { - log::info!("load file {} error: {}",SYSBOOST_CONFIG_PATH, e); + log::info!("load file {} failed",SYSBOOST_CONFIG_PATH); return; } }; diff --git a/src/sysboostd/daemon.rs b/src/sysboostd/daemon.rs index 6664fa80de222e5addf9e8606a20b35c8b3f35f1..73b1b4e83b14e34f6c0b453e4c7b0ebb667d7344 100644 --- a/src/sysboostd/daemon.rs +++ b/src/sysboostd/daemon.rs @@ -116,7 +116,7 @@ fn clean_last_rto() { let real_path = match fs::canonicalize(&p) { Ok(p) => p, Err(e) => { - log::warn!("get realpath failed: {}", e); + log::info!("get realpath failed: {}", e.kind()); continue; } }; @@ -189,7 +189,7 @@ fn start_service() { let mut inotify = Inotify::init().unwrap(); match inotify.add_watch(SYSBOOST_CONFIG_PATH, WatchMask::MODIFY) { Err(e) => { - log::info!("watch init file failed {}", e); + log::info!("watch init file failed: {}", e.kind()); } _ => {} }; diff --git a/src/sysboostd/main.rs b/src/sysboostd/main.rs index f1abbb27e90469d24c6ca556bb5d49f0ffef97c6..08b89ebe657bb9d1f88a7d0f02814fd4b6c44f80 100644 --- a/src/sysboostd/main.rs +++ b/src/sysboostd/main.rs @@ -147,7 +147,7 @@ fn main() { profile_path = PROFILE_PATH_DEFAULT; } let ret = gen_bolt_optimize_bin(bolt_elf_name, bolt_option, profile_path, bolt_dir); - if ret < 0 { + if ret != 0 { std::process::exit(-1); } std::process::exit(write_back_config(bolt_elf_name));