Skip to content

chore: Add logs when a suggestion creation fails#984

Merged
Erethon merged 1 commit intoNixOS:mainfrom
Erethon:suggestion-log-fails
Apr 9, 2026
Merged

chore: Add logs when a suggestion creation fails#984
Erethon merged 1 commit intoNixOS:mainfrom
Erethon:suggestion-log-fails

Conversation

@Erethon
Copy link
Copy Markdown
Collaborator

@Erethon Erethon commented Apr 8, 2026

Related to #982, it would be nice to know why suggestion creation failed in this case.

@Erethon Erethon force-pushed the suggestion-log-fails branch from f32c314 to 3128a77 Compare April 8, 2026 23:30
@Erethon Erethon marked this pull request as ready for review April 8, 2026 23:38
@Erethon Erethon added this pull request to the merge queue Apr 9, 2026
Merged via the queue into NixOS:main with commit f874555 Apr 9, 2026
3 checks passed
@Erethon
Copy link
Copy Markdown
Collaborator Author

Erethon commented Apr 9, 2026

Didn't mean to self-merge without a proper review, I expected the merge queue to wait for it to be approved before actually merging it :/

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)
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants