Skip to content

Commit f2a4d4b

Browse files
authored
Merge pull request #3796 from ActiveState/mitchell/cp-1284-2
Do not log WaitForEvents warning.
2 parents 442daeb + 68dc331 commit f2a4d4b

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)