Skip to content

Commit

Permalink
Write logger errors to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickJadoul committed Feb 2, 2021
1 parent b52d27d commit 7b13a0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cibuildwheel/logger.py
Expand Up @@ -114,10 +114,10 @@ def error(self, error: Union[BaseException, str]) -> None:
print()

if self.fold_mode == 'github':
print(f'::error::{error}')
print(f'::error::{error}', file=sys.stderr)
else:
c = self.colors
print(f'{c.bright_red}Error{c.end} {error}')
print(f'{c.bright_red}Error{c.end} {error}', file=sys.stderr)

def _start_fold_group(self, name: str) -> None:
self._end_fold_group()
Expand Down

0 comments on commit 7b13a0f

Please sign in to comment.