1
0
mirror of https://github.com/golang/go synced 2024-11-08 15:06:22 -07:00
go/src/log
hagen1778 d1731f8cbc log: fix data race on log.Output
There was unprotected access to Logger.flag in log.Output which
could lead to data race in cases when log.SetFlags called simultaneously.
For example, "hot" switching on/off debug-mode for Logger by log.SetFlags
while application still writing logs.

Fixes #21935

Change-Id: I36be25f23cad44cde62ed1af28a30d276400e1b8
Reviewed-on: https://go-review.googlesource.com/64710
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-09-19 20:35:24 +00:00
..
syslog
example_test.go log: adds a Logger Output method Example 2017-07-16 03:57:11 +00:00
log_test.go log: fix data race on log.Output 2017-09-19 20:35:24 +00:00
log.go log: fix data race on log.Output 2017-09-19 20:35:24 +00:00