logging.disable(logging.CRITICAL)
will disable all logging calls with levels less severe than or equal to CRITICAL. Logging can be re-enabled with
logging.disable(logging.NOTSET)
logging.disable(logging.CRITICAL)
will disable all logging calls with levels less severe than or equal to CRITICAL. Logging can be re-enabled with
logging.disable(logging.NOTSET)