Remove unnecessary debug from try_open_with_path

Former-commit-id: 891d24c247d15f406ebd24ca923b62e6f43bf9ea
This commit is contained in:
timokoesters 2019-04-30 20:01:47 +02:00 committed by Imbris
parent e8aa680aad
commit 53a78e1c2f

View File

@ -108,16 +108,7 @@ fn try_open_with_path(name: &str) -> Option<File> {
]
.into_iter()
.map(|bp| [bp, name].concat())
.find_map(|ref filename| match File::open(filename) {
Ok(file) => {
debug!("Loading {} successful", filename);
Some(file)
}
Err(err) => {
error!("Loading {} failed: {}", filename, err);
None
}
})
.find_map(|ref filename| File::open(filename).ok())
}
pub fn load_from_path(name: &str) -> Result<Vec<u8>, Error> {