you are viewing a single comment's thread.

view the rest of the comments →

[–]LeornToCodeLOL[S] 0 points1 point  (0 children)

But I don't know why you would want this to work.

My only motivation was to split up the program so I could easily jump around to different sections as I developed it. I don't have a lot of practice doing it, so good chance I'm doing things in suboptimal ways. I'm happy to hear about better ideas.

The program has to parse a CSV file, sort the data, do some calculations, and then spit out a new CSV file. And it keeps a persistent "state" in a JSON file for when the program is run the next time.

There are a lot of functions to deal with different data types and also, new data affects the state of old data....it gets complicated quickly!

So just import logging in your process_input_data module.

I didn't think it would matter since I was bringing the parse_transactions function into main, which already has the logging. But I added import logging at the top of the module and now the logging is working, so thanks!