Closed indrakaw closed 4 years ago
tee
is good enough for me, but I suppose this would still be useful. Especially since the current logging uses a lot of \r
s to overwrite previous output.
Normally I would copy what's on screen then paste it. :p
Looking back at this, I bet the cause of your issue is that this script writes to both stdout and stderr. To get both status messages and errors, do
python tumblr_backup.py [...other arguments...] >log.txt 2>&1
Note the 2>&1
at the end. That should work on all operating systems.
By default errors show on screen. It's possible to redirect output to a file, but it isn't effective. My suggestion is an option to enable progress logging on a file in output directory, eg
errors.log
or justlogs.txt
.