Skip to content

Commit

Permalink
fix log files and info as default log level
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonbeckas committed May 26, 2020
1 parent 8e8fbe1 commit ce261bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ static mut KEEP_ALIVES: Vec<KeepAlive> = Vec::new();


fn main(){
env_logger::init();
env_logger::init_from_env(env_logger::Env::default().filter_or(env_logger::DEFAULT_FILTER_ENV,"info"));
info!("ProcessWatcher started");
let path = get_path();
let path:&Path =path.borrow();
Expand Down
2 changes: 1 addition & 1 deletion src/processes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl KeepAliveParams {

fn get_logfile (&mut self) -> File {
let folder = std::env::current_exe().ok().expect("Error while open configuration Folder");
let folder = folder.parent().unwrap();
let folder = folder.as_path();
let mut path_buf = PathBuf::new();
path_buf.push(folder.parent().unwrap());
path_buf.push("logs");
Expand Down

0 comments on commit ce261bb

Please sign in to comment.