mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
add more logging to model loading
This commit is contained in:
1 parent
c8eeb91a20
commit
bf957be07b
1 file changed
+8
-2
@@ -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
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user