diff --git a/repo2docker/__main__.py b/repo2docker/__main__.py index 0e427221..62d9d883 100644 --- a/repo2docker/__main__.py +++ b/repo2docker/__main__.py @@ -334,12 +334,12 @@ def main(): r2d.start() except docker.errors.BuildError as e: # This is only raised by us - if r2d.debug: + if r2d.log_level == logging.DEBUG: r2d.log.exception(e) sys.exit(1) except docker.errors.ImageLoadError as e: # This is only raised by us - if r2d.debug: + if r2d.log_level == logging.DEBUG: r2d.log.exception(e) sys.exit(1)