Skip to content

Reduce log severity from attachment queue service - #446

Merged
simolus3 merged 2 commits into
mainfrom
silence-attachment-logs
Jul 29, 2026
Merged

Reduce log severity from attachment queue service#446
simolus3 merged 2 commits into
mainfrom
silence-attachment-logs

Conversation

@simolus3

@simolus3 simolus3 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Currently, the syncing logic of the attachment system logs the same stuff multiple times and with a severity that is annoyingly high. This PR reduces visible logs:

  • Reduce periodic log messages from the normal attachment scanning interval to level fine and lower, meaning that they wouldn't get logged by default loggers.
  • Since downloadAttachment and friends log a message before they do anything, we don't need to log almost the same message before calling them.
  • When an error handler determines that an attachment should be archived instead of retried, we sometimes didn't log the original error. Fix that by logging the error first.

In other words, we only log when the attachment service actually does stuff (downloading, uploading, deleting). Its internal state can be observed with a logger set to level fine and lower for debugging purposes, but this wouldn't happen by default.

Closes #408.

@simolus3
simolus3 requested a review from khawarizmus July 27, 2026 07:54
khawarizmus
khawarizmus previously approved these changes Jul 29, 2026

@khawarizmus khawarizmus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@simolus3
simolus3 merged commit 09c2895 into main Jul 29, 2026
13 checks passed
@simolus3
simolus3 deleted the silence-attachment-logs branch July 29, 2026 13:25
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.

Attachment queue logs "is already synced" for every row on every sync tick

3 participants