From 68dc331a22573312d2438671881f6b631e7e0a54 Mon Sep 17 00:00:00 2001 From: mitchell Date: Tue, 23 Dec 2025 16:36:15 -0500 Subject: [PATCH] Do not log WaitForEvents warning. --- cmd/state-svc/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/state-svc/main.go b/cmd/state-svc/main.go index 779944601b..5f9d905092 100644 --- a/cmd/state-svc/main.go +++ b/cmd/state-svc/main.go @@ -55,7 +55,10 @@ func main() { } if err := events.WaitForEvents(5*time.Second, rollbar.Wait, authentication.LegacyClose, logging.Close); err != nil { - fmt.Fprintf(os.Stderr, "Warning: failed to wait for events") + // Note: logger is closed, so cannot log here. Also, the activate integration tests seem to be + // affected by a write to os.Stderr. Regardless, since state-svc runs in the background for + // the most part, we realistically will not see this error. + //fmt.Fprintf(os.Stderr, "Warning: failed to wait for events") } os.Exit(exitCode) }()