DataBiosphere / terra-notebook-utils

Utilities for the Terra notebook environment.
MIT License
7 stars 6 forks source link

Extraneous logging when using drs.copy API operations in Jupyter Notebook #371

Closed mbaumann-broad closed 2 years ago

mbaumann-broad commented 2 years ago

Note: This does not impact correct operation, yet it would be nice to fix if a quick easy fix is available, as I expect there is.

Current Behavior When using the drs.copy API operations in Jupyter Notebook the progress bar outputs extraneous logging to the user's Notebook, as shown below (extraneous log messages highlighted in red):

image

The extraneous log messages are included in text format below:

021-11-02 04:04:20::INFO  '<class 'terra_notebook_utils.blobstore.progress.NotebookProgressBar'>' displayed IPython widget 'HBox(children=(Label(value=''), IntProgress(value=0, max=15769211), Label(value='15.0MiB'), Label(value=''), Label(value='')))'.
2021-11-02 04:04:20::INFO  '<class 'terra_notebook_utils.blobstore.progress.NotebookProgressBar'>' entered context.
2021-11-02 04:04:20::INFO  '<class 'terra_notebook_utils.blobstore.progress.NotebookProgressBar'>' added progress '0'.
2021-11-02 04:04:21::INFO  '<class 'terra_notebook_utils.blobstore.progress.NotebookProgressBar'>' added progress '15769211'.
2021-11-02 04:04:21::INFO  '<class 'terra_notebook_utils.blobstore.progress.NotebookProgressBar'>' added progress '0'.
2021-11-02 04:04:21::INFO  '<class 'terra_notebook_utils.blobstore.progress.NotebookProgressBar'>' exited context.

Desired Behavior These INFO level messages from the progress bar should not be output/displayed in the user's Notebook when using TNU drs.copy operations. Instead, the INFO level messages from the progress bar should be suppressed.

mbaumann-broad commented 2 years ago

This was fixed in: https://github.com/DataBiosphere/terra-notebook-utils/pull/375

mbaumann-broad commented 2 years ago

This was fixed in: https://github.com/DataBiosphere/terra-notebook-utils/pull/375