diff options
| author | Scott Gasch <[email protected]> | 2021-07-08 19:44:27 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-07-08 19:44:27 -0700 |
| commit | 3bc4daf1edc121cd633429187392227f2fa61885 (patch) | |
| tree | 0663cf35f562c7023c914454c85050d502ad9f3c /bootstrap.py | |
| parent | 5fd30ef12c100cbb936aa0fdb515b67cff4064db (diff) | |
Lots of changes.
Diffstat (limited to 'bootstrap.py')
| -rw-r--r-- | bootstrap.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bootstrap.py b/bootstrap.py index d1233e9..0d37dcb 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -47,7 +47,8 @@ def initialize(funct): sys.excepthook = handle_uncaught_exception config.parse() logging_utils.initialize_logging(logging.getLogger()) - logger.debug(f"About to invoke {funct}...") + config.late_logging() + logger.debug(f'Starting {funct.__name__}') start = time.perf_counter() ret = funct(*args, **kwargs) end = time.perf_counter() @@ -59,6 +60,9 @@ def initialize(funct): f'child system: {cstime}s\n' f'elapsed: {elapsed_time}s\n' f'walltime: {end - start}s\n') - logger.info(f'Exit {ret}') + if ret != 0: + logger.info(f'Exit {ret}') + else: + logger.debug(f'Exit {ret}') sys.exit(ret) return initialize_wrapper |
