logging: capture warnings too

This commit is contained in:
James R. Barlow
2019-06-12 17:28:02 -07:00
parent 8b8de7cc1d
commit cfb11559d5
+3
View File
@@ -111,6 +111,9 @@ def configure_logging(verbosity, progress_bar_friendly=True, manage_root_logger=
pil_log = logging.getLogger('PIL')
pil_log.setLevel(logging.INFO)
if manage_root_logger:
logging.captureWarnings(True)
def create_options(*, input_file, output_file, **kwargs):
cmdline = []