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 d50a3d1 commit c6b6f75Copy full SHA for c6b6f75
ci/fireci/fireci/main.py
@@ -13,14 +13,18 @@
13
# limitations under the License.
14
15
import logging
16
+import os
17
18
from . import commands
19
from . import plugins
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 '
24
+log_format = f'[%(levelname).1s] {asctime_place_holder}%(name)s: %(message)s'
25
logging.basicConfig(
26
datefmt='%Y-%m-%d %H:%M:%S %z %Z',
- format='[%(levelname).1s] %(asctime)s %(name)s: %(message)s',
27
+ format=log_format,
28
level=logging.INFO,
29
)
30
logging.getLogger('fireci').setLevel(logging.DEBUG)
0 commit comments