Skip to content

Commit

Permalink
F #6553: Add oneflow error msgs to main oneflow server log file (#3127)
Browse files Browse the repository at this point in the history
  • Loading branch information
vickmp authored Jul 3, 2024
1 parent 9d201cd commit c8500c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/flow/oneflow-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@
# @param error_msg [String] Error message
# @param error_code [Integer] Http error code
def internal_error(error_msg, error_code)
Log.error LOG_COMP, "Error code #{error_code}: #{error_msg}"

status error_code
body error_msg
end
Expand Down

0 comments on commit c8500c4

Please sign in to comment.