From 299b309a33c041493e43e3191a29d48db131500f Mon Sep 17 00:00:00 2001 From: Pavel Zbitskiy <65323360+algorandskiy@users.noreply.github.com> Date: Tue, 14 May 2024 13:16:20 -0400 Subject: [PATCH] logger: fix data race in tests (#5999) --- logging/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging/log.go b/logging/log.go index d9b79eb9aa..48f83c1b9e 100644 --- a/logging/log.go +++ b/logging/log.go @@ -308,7 +308,7 @@ func (l logger) SetOutput(w io.Writer) { } func (l logger) setOutput(w io.Writer) { - l.entry.Logger.Out = w + l.entry.Logger.SetOutput(w) } func (l logger) getOutput() io.Writer {