add more logging to model loading

This commit is contained in:
Brandon Thomas committed 2020-05-30 21:42:15 -04:00
1 parent c8eeb91a20
commit bf957be07b
1 file changed
+8 -2
+8 -2
View File
@@ -57,7 +57,10 @@ impl ModelCache {
lock.insert(filename.to_string(), arc.clone());
Some(arc)
},
Err(_) => None,
Err(e) => {
warn!("There was an error loading the model `{:?}`: {}", file_path, e);
None
},
}
}
@@ -84,7 +87,10 @@ impl ModelCache {
lock.insert(filename.to_string(), arc.clone());
Some(arc)
},
Err(_) => None,
Err(e) => {
warn!("There was an error loading the model `{:?}`: {}", file_path, e);
None
},
}
}