Skip to content

Commit

Permalink
fixed logging
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumevernieres committed Sep 19, 2024
1 parent a4d8391 commit 2a5e9bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ush/python/pygfs/task/marine_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,4 +487,4 @@ def create_obs_space(data):
if result.returncode != 0:
logger.warning(f"{command} has failed")
if result.stderr:
print("STDERR:", result.stderr.decode())
logger.warning("STDERR:", result.stderr.decode())
4 changes: 2 additions & 2 deletions ush/python/pygfs/utils/marine_da_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def run(exec_cmd: Executable) -> None:
logger.debug(f"Executing {exec_cmd}")
exec_cmd()
except OSError:
raise OSError(f"Failed to execute {exec_cmd}")
raise OSError(f"FATAL ERROR: Failed to execute {exec_cmd}")
except Exception:
raise WorkflowException(f"An error occured during execution of {exec_cmd}")
raise WorkflowException(f"FATAL ERROR: Error occurred during execution of {exec_cmd}")


@logit(logger)
Expand Down

0 comments on commit 2a5e9bf

Please sign in to comment.