fix: add a bit of logging
This commit is contained in:
parent
a51bfae005
commit
0990841afa
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue