log/slog: data race in log/slog.Logger.With #63225
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
In the
slog
logging library, I useWith
to create a new log copy, which makes it easier to add independent loggers in different modules.https://pkg.go.dev/log/slog#Logger.With
The test program reports a
DATA RACE
. What should I do?What did you expect to see?
The test passed.
What did you see instead?
Run unit test command, and added the
-race
argument. The test failed.Full Report:
https://github.com/go-spring-projects/go-spring/actions/runs/6307172009/job/17123387313#step:4:80
The text was updated successfully, but these errors were encountered: