Skip to content

Ensure log messages are written in an atomic manner

Stan Hu requested to merge sh-fix-atomic-writes into master

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

Merge request reports