Skip to content

Commit f874555

Browse files
committed
chore: Add logs when a suggestion creation fails
1 parent c4a4a3a commit f874555

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/webview/suggestions/views/status.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def post(self, request: HttpRequest, suggestion_id: int) -> HttpResponse:
122122
suggestion.save()
123123
undo_status_target = None # We disable the undo button in case we have published. There is no turning back.
124124
except Exception:
125+
logger.exception("Failed to publish suggestion %d", suggestion_id)
125126
return self._handle_error(
126127
request, suggestion_context, "Unable to publish this suggestion"
127128
)

0 commit comments

Comments
 (0)