From 0990841afa0bda25acd5f9d81a4f5d159a9476d2 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sat, 5 Aug 2023 23:33:13 +0100 Subject: [PATCH] fix: add a bit of logging --- src/bin/update_data.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/update_data.rs b/src/bin/update_data.rs index 7e81428..f42cde5 100644 --- a/src/bin/update_data.rs +++ b/src/bin/update_data.rs @@ -128,7 +128,9 @@ impl From for AccountWolves { fn get_csv(config: &Config) -> Result, Box> { let mut records: Vec = vec![]; - if let Ok(mut rdr) = csv::Reader::from_path(format!("{}/{}", &config.home, &config.csv)) { + let csv = format!("{}/{}", &config.home, &config.csv); + println!("CSV: {:?}", &csv); + if let Ok(mut rdr) = csv::Reader::from_path(csv) { for result in rdr.deserialize() { // Notice that we need to provide a type hint for automatic // deserialization.