Skip to content

Commit

Permalink
add exec info for warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Kelly A <kellyaa@users.noreply.github.com>
  • Loading branch information
kellyaa committed May 14, 2024
1 parent d4c4a08 commit 4032a0c
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions caikit/runtime/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ def main() -> int:
"log_code": "<COR39662029E>",
"message": message,
"stack_trace": traceback.format_exc(),
}
},
exc_info=True,
)
write_termination_log(message)
exit(USER_ERROR_EXIT_CODE)
Expand All @@ -172,7 +173,8 @@ def main() -> int:
"log_code": "<COR17776539E>",
"message": message,
"stack_trace": traceback.format_exc(),
}
},
exc_info=True,
)
write_termination_log(message)
exit(USER_ERROR_EXIT_CODE)
Expand Down Expand Up @@ -269,7 +271,8 @@ def main() -> int:
"log_code": "<COR65474760E>",
"message": message,
"stack_trace": traceback.format_exc(),
}
},
exc_info=True,
)
except Exception:
message = "Exception encountered when attempting to parse input parameters"
Expand All @@ -278,7 +281,8 @@ def main() -> int:
"log_code": "<COR17776549E>",
"message": message,
"stack_trace": traceback.format_exc(),
}
},
exc_info=True,
)
write_termination_log(message)
exit(USER_ERROR_EXIT_CODE)
Expand Down Expand Up @@ -308,7 +312,8 @@ def main() -> int:
"log_code": "<COR04280062E>",
"message": message,
"stack_trace": traceback.format_exc(),
}
},
exc_info=True,
)
write_termination_log(message)
exit(INTERNAL_ERROR_EXIT_CODE)
Expand All @@ -319,7 +324,8 @@ def main() -> int:
"log_code": "<COR04280062E>",
"message": message,
"stack_trace": traceback.format_exc(),
}
},
exc_info=True,
)
write_termination_log(message)
exit(INTERNAL_ERROR_EXIT_CODE)
Expand Down

0 comments on commit 4032a0c

Please sign in to comment.