Replace println! calls with logging

This commit is contained in:
Sam Wilson
2018-10-10 12:55:32 -04:00
committed by Levente Kurusa
parent adc3323be4
commit 84ae587360
5 changed files with 10 additions and 8 deletions
+4 -1
View File
@@ -1,3 +1,6 @@
#[macro_use]
extern crate log;
use std::fs::File;
use std::io::{BufRead, BufReader, Write};
use std::path::PathBuf;
@@ -163,7 +166,7 @@ pub trait Controller {
if self.verify_path() {
match ::std::fs::create_dir(self.get_path()) {
Ok(_) => (),
Err(e) => println!("error create_dir {:?}", e),
Err(e) => warn!("error create_dir {:?}", e),
}
}
}