diff options
| author | Scott Gasch <[email protected]> | 2022-02-08 14:38:15 -0800 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-02-08 14:38:15 -0800 |
| commit | 0d63d44ac89aab38fe95f36497adaf95110ab949 (patch) | |
| tree | 150c4fa334505d17d830592901d6b96b3a4d464e /tests/parallelize_itest.py | |
| parent | 5c212d7639f62fcb936f9d7a0bbe704a9f7b213d (diff) | |
More cleanup.
Diffstat (limited to 'tests/parallelize_itest.py')
| -rwxr-xr-x | tests/parallelize_itest.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/parallelize_itest.py b/tests/parallelize_itest.py index d09e9f3..409b8dc 100755 --- a/tests/parallelize_itest.py +++ b/tests/parallelize_itest.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 +import logging import sys import bootstrap @@ -8,6 +9,8 @@ import executors import parallelize as p import smart_future +logger = logging.getLogger(__name__) + @p.parallelize(method=p.Method.THREAD) def compute_factorial_thread(n): @@ -77,4 +80,8 @@ def main() -> None: if __name__ == '__main__': - main() + try: + main() + except Exception as e: + logger.exception(e) + sys.exit(1) |
