Skip to content

Only log full webhook payload when small - #352

Merged
asternic merged 2 commits into
asternic:mainfrom
csu333:fix/webhook-log-large-payloads
Aug 11, 2026
Merged

Only log full webhook payload when small#352
asternic merged 2 commits into
asternic:mainfrom
csu333:fix/webhook-log-large-payloads

Conversation

@csu333

@csu333 csu333 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Webhook debug logging previously wrote the full event payload on every send. For image messages with base64 data this can be tens of MB, producing oversized log lines and unbounded disk growth on resource-constrained hosts. Now the full payload is logged only when under 8KB; larger payloads log metadata (user, instance, byte size) instead.

csu333 and others added 2 commits August 10, 2026 10:24
Webhook debug logging previously wrote the full event payload on every
send. For image messages with base64 data this can be tens of MB,
producing oversized log lines and unbounded disk growth on
resource-constrained hosts. Now the full payload is logged only when
under 8KB; larger payloads log metadata (user, instance, byte size)
instead.
@asternic
asternic merged commit 7105b56 into asternic:main Aug 11, 2026
1 check passed
@csu333
csu333 deleted the fix/webhook-log-large-payloads branch August 13, 2026 06:47
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.

2 participants