Skip to content

feat(demi): log each landed DEMI push - #944

Merged
danieltruong merged 3 commits into
developfrom
feat-demi-push-log
Oct 9, 2026
Merged

danieltruong merged 3 commits into
developfrom
feat-demi-push-log

Conversation

@danieltruong

Copy link
Copy Markdown
Collaborator

Only failed DEMI pushes wrote a log line, so the pod log could not show that a push landed before the write response was sent.

Each landed push now logs one info line through the default winston logger:

[demiPush] mirrored <kind> <id>

The line is written in sendMirrored next to the existing not-mirrored error line. Values that are not labelled pushes (null, or the bare resolved promise from a write that matched nothing) log nothing.

Tests cover one push, two pushes in order, a failed push, no push, and the unlabelled case.

Only failed pushes wrote a log line, so a pod log could not show
that the push landed before the write response was sent. Each landed
push logs one info line: [demiPush] mirrored <kind> <id>.
The mirrored guard hid the info line for pushes that landed in the
same write as a failed one. result.landed already holds only the
pushes that landed.
@danieltruong
danieltruong merged commit 894c926 into develop Oct 9, 2026
3 checks passed
@danieltruong
danieltruong deleted the feat-demi-push-log branch October 9, 2026 23:50
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.

1 participant