fix fmt.Println losing records when called from within goroutine
gofmt