We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d93ac5b commit 04ab616Copy full SHA for 04ab616
ci/fireci/fireci/main.py
@@ -20,14 +20,17 @@
20
from .internal import main
21
22
# Unnecessary on CI as GitHub Actions provides them already.
23
-asctime_place_holder = '' if os.getenv('CI') else '%(asctime)s '
+is_ci = os.getenv('CI')
24
+asctime_place_holder = '' if is_ci else '%(asctime)s '
25
log_format = f'[%(levelname).1s] {asctime_place_holder}%(name)s: %(message)s'
26
logging.basicConfig(
27
datefmt='%Y-%m-%d %H:%M:%S %z %Z',
28
format=log_format,
29
level=logging.INFO,
30
)
-logging.getLogger('fireci').setLevel(logging.DEBUG)
31
+
32
+level = logging.DEBUG if is_ci else logging.INFO
33
+logging.getLogger('fireci').setLevel(level)
34
35
plugins.discover()
36
0 commit comments