fix: add a bit of logging

This commit is contained in:
silver 2023-08-05 23:33:13 +01:00
parent a51bfae005
commit 0990841afa

View file

@ -128,7 +128,9 @@ impl From<RecordCSV> for AccountWolves {
fn get_csv(config: &Config) -> Result<Vec<RecordCSV>, Box<dyn std::error::Error>> {
let mut records: Vec<RecordCSV> = 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.