diff options
Diffstat (limited to 'subcmds/forall.py')
-rw-r--r-- | subcmds/forall.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py index 9a02c49f..287f2e04 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py | |||
@@ -28,8 +28,10 @@ from command import DEFAULT_LOCAL_JOBS | |||
28 | from command import MirrorSafeCommand | 28 | from command import MirrorSafeCommand |
29 | from command import WORKER_BATCH_SIZE | 29 | from command import WORKER_BATCH_SIZE |
30 | from error import ManifestInvalidRevisionError | 30 | from error import ManifestInvalidRevisionError |
31 | from repo_logging import RepoLogger | ||
31 | 32 | ||
32 | 33 | ||
34 | logger = RepoLogger(__file__) | ||
33 | _CAN_COLOR = [ | 35 | _CAN_COLOR = [ |
34 | "branch", | 36 | "branch", |
35 | "diff", | 37 | "diff", |
@@ -293,10 +295,10 @@ without iterating through the remaining projects. | |||
293 | rc = rc or errno.EINTR | 295 | rc = rc or errno.EINTR |
294 | except Exception as e: | 296 | except Exception as e: |
295 | # Catch any other exceptions raised | 297 | # Catch any other exceptions raised |
296 | print( | 298 | logger.error( |
297 | "forall: unhandled error, terminating the pool: %s: %s" | 299 | "forall: unhandled error, terminating the pool: %s: %s", |
298 | % (type(e).__name__, e), | 300 | type(e).__name__, |
299 | file=sys.stderr, | 301 | e, |
300 | ) | 302 | ) |
301 | rc = rc or getattr(e, "errno", 1) | 303 | rc = rc or getattr(e, "errno", 1) |
302 | if rc != 0: | 304 | if rc != 0: |