Skip to content

Commit 68dc331

Browse files
committed
Do not log WaitForEvents warning.
1 parent 442daeb commit 68dc331

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/state-svc/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ func main() {
5555
}
5656

5757
if err := events.WaitForEvents(5*time.Second, rollbar.Wait, authentication.LegacyClose, logging.Close); err != nil {
58-
fmt.Fprintf(os.Stderr, "Warning: failed to wait for events")
58+
// Note: logger is closed, so cannot log here. Also, the activate integration tests seem to be
59+
// affected by a write to os.Stderr. Regardless, since state-svc runs in the background for
60+
// the most part, we realistically will not see this error.
61+
//fmt.Fprintf(os.Stderr, "Warning: failed to wait for events")
5962
}
6063
os.Exit(exitCode)
6164
}()

0 commit comments

Comments
 (0)