-
Notifications
You must be signed in to change notification settings - Fork 371
Do not log progress bar to stderr #151
Comments
I've just taken a look at the source of tqdm, it's hard coded and no option to control this behavior.
|
I think you can pass it a Unfortunately your suggestion doesn't completely solve the problem since I cannot change how our scripts are run. Additionally, the download process gets triggered often (which I have to investigate) so installing at the beginning will not stop the other downloads (we run the scripts periodically) |
Do you want to record progress bar to a log file? |
Adding option to |
Ok I will make a proof of concept PR and you decide. |
Actually it might be better to make an issue upstream to Edit: tqdm/tqdm#619 |
Our application emails devs when some program logs to stderr. Right now I can override pyppeteer's root logger to my needs. However https://github.com/stellarhoof/pyppeteer/blob/dev/pyppeteer/chromium_downloader.py#L85 uses stderr by default. Could we customize this? At the very least we could try and reuse the first stream handler that the logger at https://github.com/stellarhoof/pyppeteer/blob/dev/pyppeteer/chromium_downloader.py#L19 has. That way customizations that clients of your library do to your logger carry over.
What do you think?
The text was updated successfully, but these errors were encountered: