Skip to content

fix: make sure that when calling Log no other process is Updating the struct #36

Description

@manuelarte

Based on the conversation in https://gophers.slack.com/archives/C02A3DRK6/p1789938584440119?thread_ts=1789931366.728789&cid=C02A3DRK6 it can happen that when calling the defer function that logs the entry, another goroutine is updating the struct.

Kudos to https://github.com/Snawoot for the feedback

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions