diff --git a/pmb/__init__.py b/pmb/__init__.py index 00874ec3..3019285b 100644 --- a/pmb/__init__.py +++ b/pmb/__init__.py @@ -71,6 +71,10 @@ def main(): logging.info("Done") except Exception as e: + # Dump log to stdout when args (and therefore logging) init failed + if not args: + logging.getLogger().setLevel(logging.DEBUG) + logging.info("ERROR: " + str(e)) logging.info("See also: ") logging.debug(traceback.format_exc())