Skip to content

Commit

Permalink
Lazy log interpolation
Browse files Browse the repository at this point in the history
Signed-off-by: Gabe Goodhart <gabe.l.hart@gmail.com>
  • Loading branch information
gabe-l-hart authored Jun 12, 2024
1 parent c579ee2 commit 1c9da8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caikit/runtime/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ def exit_complete(
if save_path:
try:
complete_path = os.path.join(save_path, ".complete")
log.info(f"Creating completion file at: {complete_path}")
log.info("Creating completion file at: %s", complete_path)
Path(complete_path).touch()
except Exception as e:
log.warning(f"Unable to write completion file due to execption: {e}")
log.warning("Unable to write completion file due to execption: %s", e)

exit(exit_code)

Expand Down

0 comments on commit 1c9da8e

Please sign in to comment.