You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Methods of the class DeviceManager in the file device_manager.py use the function print_with_timestamp to print to stdout even though the bool verbose in DeviceManager.__init__ is set to False.
Output to stdout is annoying, if your scripts are intended to be directly piped into a text file (as common on Linux) or if you need control over your terminal (e.g., you want to show progress bars).
From my point of view, the best option would be to use the logging module of Python and let the user of the library configure how and if she/he wants debugging output. Another option would be to at least don't call print_with_timestamp if verbose was set to False.
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
Methods of the class
DeviceManager
in the filedevice_manager.py
use the functionprint_with_timestamp
to print to stdout even though the boolverbose
inDeviceManager.__init__
is set toFalse
.Here is an example output to stdout:
Output to stdout is annoying, if your scripts are intended to be directly piped into a text file (as common on Linux) or if you need control over your terminal (e.g., you want to show progress bars).
From my point of view, the best option would be to use the
logging
module of Python and let the user of the library configure how and if she/he wants debugging output. Another option would be to at least don't callprint_with_timestamp
ifverbose
was set to False.Additional Information
No response
The text was updated successfully, but these errors were encountered: