aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/utils.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-05 13:41:57 +0500
committerEgor Tensin <egor@tensin.name>2026-10-05 13:47:27 +0500
commit84cf347f666652998f107d68649ba939ba1ec319 (patch)
tree9f54c2f25e0045c008f65a43828a22ac4c3ee156 /project/utils.py
parenttools/ctest-driver.py -> project/ctest_driver.py (diff)
downloadcmake-common-84cf347f666652998f107d68649ba939ba1ec319.tar.gz
cmake-common-84cf347f666652998f107d68649ba939ba1ec319.zip
project.ctest_driver: verbose logging
Diffstat (limited to 'project/utils.py')
-rw-r--r--project/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/project/utils.py b/project/utils.py
index 3fb73c4..57f5d85 100644
--- a/project/utils.py
+++ b/project/utils.py
@@ -46,7 +46,7 @@ def full_exe_name(exe):
@contextmanager
-def setup_logging():
+def setup_logging(verbose=False):
level_names = {
logging.DEBUG: "DBG",
logging.INFO: "INFO",
@@ -58,7 +58,7 @@ def setup_logging():
logging.addLevelName(lvl, name)
logging.basicConfig(
- level=logging.INFO,
+ level=logging.DEBUG if verbose else logging.INFO,
datefmt="%Y-%m-%d %H:%M:%S%z",
format="%(asctime)s | %(levelname)4s | %(message)s",
# Log to stdout, because that's where subprocess's output goes (so that