From 543705262b0a638d1e5cecdf6484a19d06cfd117 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 1 May 2018 00:22:16 +0000 Subject: [PATCH] Only print 'pmbootstrap log' msg to stdout (#1453) Prevent the "Run 'pmbootstrap log' for details" message from being written to the log file that gets read with "pmbootstrap log". Because when the output of "pmbootstrap log" is pasted somewhere and people analyze it, the message sounds like this is not the output of "pmbootstrap log" (like it happened the other day in #postmarketOS). --- pmb/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pmb/__init__.py b/pmb/__init__.py index 30c8cbd7..8b1b856c 100644 --- a/pmb/__init__.py +++ b/pmb/__init__.py @@ -68,7 +68,8 @@ def main(): except Exception as e: logging.info("ERROR: " + str(e)) if os.path.exists(args.log): - logging.info("Run 'pmbootstrap log' for details.") + # Hint to read the log file (only gets printed to stdout) + print("Run 'pmbootstrap log' for details.") else: logging.info("Crashed before the log file was created.") logging.info("Running init again like the following gives more details:")