Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/webview/suggestions/views/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
suggestion.save()
undo_status_target = None # We disable the undo button in case we have published. There is no turning back.
except Exception:
logger.exception("Failed to publish suggestion %d", suggestion_id)

Check warning

Code scanning / CodeQL

Log Injection Medium

This log entry depends on a
user-provided value
.
Comment thread
Erethon marked this conversation as resolved.
Dismissed
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we actually log an error (or equivalent) such that we get a notification? Not being able to publish is pretty much an outage.

return self._handle_error(
request, suggestion_context, "Unable to publish this suggestion"
)
Expand Down