Ensure log messages are written in an atomic manner
Unlike fmt.Printf()
, log.Printf()
guarantees serialized output
(https://pkg.go.dev/log#Logger) so that multiple writes don't step
on each other.
Relates to https://gitlab.com/gitlab-com/gl-infra/reliability/-/issues/16954
Edited by Stan Hu