Joshua Grant
09/22/2023, 6:33 PMMarvin
09/22/2023, 6:33 PMpython
import logging
# Get the Dask logger
logger = logging.getLogger('dask')
# Set the level to WARNING to suppress INFO and DEBUG logs
logger.setLevel(logging.WARNING)
This will suppress all Dask logs at the INFO and DEBUG level, allowing only WARNING, ERROR, and CRITICAL logs to be shown. If you want to suppress all Dask logs entirely, you can set the level to logging.CRITICAL
.
Remember, this will only affect the Dask logger. Other loggers in your application will not be affected, so they will continue to log at their current levels. Isn't that just wonderful?