From cbcf5f6d44d143faec2af8f8a4e4559de3dd05ad Mon Sep 17 00:00:00 2001 From: Forest Date: Fri, 17 Sep 2021 17:26:22 -0700 Subject: [PATCH] Log git's absence at the INFO level, not ERROR The ERROR log level is needlessly high for complaining about git not being installed, especially when we're running from an extracted source archive rather than a repo. Let's keep things calm and avoid polluting desktop session logs. The INFO log level is plenty. --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index d1cfd403..b1437047 100644 --- a/config.py +++ b/config.py @@ -117,7 +117,7 @@ def git_shorthash_from_head() -> str: out, err = git_cmd.communicate() except Exception as e: - logger.error(f"Couldn't run git command for short hash: {e!r}") + logger.info(f"Couldn't run git command for short hash: {e!r}") else: shorthash = out.decode().rstrip('\n')