Closed mmoya closed 5 months ago
Cool, thank you for filing. Any issues you see with printing to stderr
instead?
FTR, my workflow is:
import subprocess
import petl as etl
stdout = subprocess.check_output(["bean-query", "-f", "csv", ...], stderr=subprocess.DEVNULL)
table = etl.fromcsv(etl.MemorySource(stdout))
So printing to stderr
is fine but I don't know if it's better to use logging to allow controlling output from higher level or even not printing at all because default config is fine and well documented.
It took me a lot to find the cause of an Using default config
in the middle of several ledger errors. Adding some context like effective_date: Using default config
would help with troubleshooting.
Thanks.
Thanks for the feedback: given the default config feels fine and documented, I'll remove it, and put it inside a DEBUG
block, which is the stand in for logging I currently have. Prepended effective_date
as well. Done.
This print breaks CSV output when using default config.