-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error: concurrent map writes #18
Comments
we should either protect the logger with a mutex or use |
or provide a recommendation for best usage practice or workaround: |
@rs could you confirm that it's a bug that should be fixed and not by design (for performance reasons)? |
If you need to change a logger in a different go you are supposed to either pass a copy of the logger. I recommend to switch to zerolog which is better designed and a lot faster btw. |
@rs we ended up with zerolog, this problem went away when we did that. |
Yeah, that could be a solution, thanks. But what about that issue? Is that something that should be fixed? If not it would be nice to document that behavior. Unfortunately can't do it as it takes too much effort, but thanks for the recommendation. |
Generally, when something is not documented as thread safe, it is caller’s job to ensure safety. |
The text was updated successfully, but these errors were encountered: