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

fix: reduce controller log warnings #890

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Conversation

wesbillman
Copy link
Collaborator

@wesbillman wesbillman commented Feb 7, 2024

Instead of removing these log messages, I lowered them to Debug in case they are useful in the future. I can remove if that's preferred as well.

@wesbillman wesbillman merged commit 51565fb into main Feb 7, 2024
11 checks passed
@wesbillman wesbillman deleted the lower-controller-log-levels branch February 7, 2024 17:55
@@ -857,7 +857,7 @@ func (s *Service) reconcileDeployments(ctx context.Context) (time.Duration, erro
deploymentLogger.Debugf("Need %d more runners for %s", require, reconcile.Deployment)
wg.Go(func(ctx context.Context) error {
if err := s.deploy(ctx, deployment); err != nil {
deploymentLogger.Warnf("Failed to increase deployment replicas: %s", err)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should really be logged at error, but only if we've already tried to increase replicas and it's failed once.

The other log messages are fine to be at Debug I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants