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

Update fleet server monitor logging #247

Merged
merged 1 commit into from
Apr 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions internal/pkg/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ func (m *simpleMonitorT) Run(ctx context.Context) (err error) {
if err != nil {
if errors.Is(err, es.ErrIndexNotFound) {
// Wait until created
m.log.Info().Msgf("index not found, try again in %v", retryDelay)
m.log.Debug().Msgf("index not found, poll again in %v", retryDelay)
} else if errors.Is(err, es.ErrTimeout) {
// Timed out, wait again
m.log.Debug().Msg("wait global checkpoints advance, timeout, wait again")
m.log.Debug().Msg("timeout on global checkpoints advance, poll again")
continue
} else {
// Log the error and keep trying
m.log.Error().Err(err).Msg("failed waiting global checkpoints advance")
m.log.Error().Err(err).Msg("failed on waiting for global checkpoints advance")
}

// Delay next attempt
Expand Down