Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pkg/stanza] Windows input operator should resubscribe when remote host restarts #35175

Merged
Merged
Prev Previous commit
Next Next commit
remove logging
  • Loading branch information
kuiperda committed Sep 23, 2024
commit 18698fc2c2557d76c260f8e320e30b25e5f79a5d
2 changes: 0 additions & 2 deletions pkg/stanza/operator/input/windows/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ func (i *Input) read(ctx context.Context) int {
events, err := i.subscription.Read(i.maxReads)
if err != nil {
i.Logger().Error("Failed to read events from subscription", zap.Error(err))
i.Logger().Info("The error is:")
i.Logger().Info(err.Error())
if i.isRemote() && (err.Error() == "The handle is invalid." || err.Error() == "subscription handle is not open") {
kuiperda marked this conversation as resolved.
Show resolved Hide resolved
kuiperda marked this conversation as resolved.
Show resolved Hide resolved
i.Logger().Info("Resubscribing, closing subscription")
closeErr := i.subscription.Close()
Expand Down