summaryrefslogtreecommitdiffstatshomepage
path: root/project/utils.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-23 12:18:21 +0200
committerEgor Tensin <egor@tensin.name>2026-06-23 12:18:21 +0200
commitcb244e894f5dc6add160d2c2a1d1bf56ae8c71f3 (patch)
tree0fe1fa7580edf496c88ac5cc5340326bb8d36986 /project/utils.py
parentworkflows/aur: passwordless sudo for builder (diff)
downloadcmake-common-cb244e894f5dc6add160d2c2a1d1bf56ae8c71f3.tar.gz
cmake-common-cb244e894f5dc6add160d2c2a1d1bf56ae8c71f3.zip
prettier log output
Diffstat (limited to 'project/utils.py')
-rw-r--r--project/utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/project/utils.py b/project/utils.py
index 34121e2..f8c0dd8 100644
--- a/project/utils.py
+++ b/project/utils.py
@@ -47,9 +47,10 @@ def full_exe_name(exe):
@contextmanager
def setup_logging():
logging.basicConfig(
- format='%(asctime)s | %(levelname)s | %(message)s',
- datefmt='%Y-%m-%d %H:%M:%S%z',
level=logging.INFO,
+ datefmt='%Y-%m-%d %H:%M:%S%z',
+ # The 8 below is for "CRITICAL"
+ format='%(asctime)s | %(levelname)8s | %(message)s',
# Log to stdout, because that's where subprocess's output goes (so that
# they don't get interleaved).
stream=sys.stdout,