From bf957be07bb1dc3fcbfa028914f66dc6aa8403e9 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 30 May 2020 21:41:35 -0400 Subject: [PATCH] add more logging to model loading --- tts_service/src/model/model_cache.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tts_service/src/model/model_cache.rs b/tts_service/src/model/model_cache.rs index 0ef15c26a1..24515cdba7 100644 --- a/tts_service/src/model/model_cache.rs +++ b/tts_service/src/model/model_cache.rs @@ -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 + }, } }