Skip to content

Commit

Permalink
Add traceback to unexpected error
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Feb 9, 2024
1 parent 6ba6e0c commit c49b092
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion librarian_server/api/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,11 @@ def commit(
"contact the administrator of this librarian instance.",
)
except Exception as e:
import traceback

log.debug(
"Extremely bad internal server error. Likley a database communication issue. "
f"Error: {e}"
f"Error: {e}, Traceback:\n{traceback.format_exc()}"
)
response.status_code = status.HTTP_500_INTERNAL_SERVER_ERROR
return UploadFailedResponse(
Expand Down

0 comments on commit c49b092

Please sign in to comment.