Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6a4c2bc

Browse files
committedApr 12, 2025·
Log to console in CI
1 parent da8e01f commit 6a4c2bc

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed
 

‎.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ jobs:
3939
--languages en
4040
--branches 3.14
4141
42-
- name: Display docsbuild.log
43-
if: always()
44-
run: cat ./logs/docsbuild.log
45-
4642
unit:
4743
name: Unit tests
4844
runs-on: ubuntu-latest

‎build_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ def parse_args() -> argparse.Namespace:
10421042
def setup_logging(log_directory: Path, select_output: str | None) -> None:
10431043
"""Setup logging to stderr if run by a human, or to a file if run from a cron."""
10441044
log_format = "%(asctime)s %(levelname)s: %(message)s"
1045-
if sys.stderr.isatty():
1045+
if sys.stderr.isatty() or 'CI' in os.environ:
10461046
logging.basicConfig(format=log_format, stream=sys.stderr)
10471047
else:
10481048
log_directory.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)
Please sign in to comment.