Skip to content

Conversation

@davidjsonn
Copy link
Contributor

StructLog.WriteTo now matches io.WriterTo, counts written bytes, and returns the first write failure so go vet stops complaining. Streaming tracers notice those errors via l.Stop(err) and abort cleanly instead of soldiering on with a broken writer. The helper WriteTrace returns once a write fails for consistency. With these tweaks the package builds cleanly under go vet and holds up better when stdout/stderr is misbehaving.

@davidjsonn davidjsonn requested a review from s1na as a code owner November 19, 2025 07:01
@MariusVanDerWijden
Copy link
Member

How are you using the structlogger? It looks a bit like a change for the sake of the change itself instead of a real functional necessary change imo

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