Skip to content

Commit

Permalink
Updated log levels in main loop
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciekPytel committed May 18, 2017
1 parent 12cfc2c commit ef58a9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cluster-autoscaler/core/static_autoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (a *StaticAutoscaler) RunOnce(currentTime time.Time) *errors.AutoscalerErro
return errors.ToAutoscalerError(errors.ApiCallError, err)
}
if len(readyNodes) == 0 {
glog.Error("No ready nodes in the cluster")
glog.Warningf("No ready nodes in the cluster")
scaleDown.CleanUpUnneededNodes()
return nil
}
Expand All @@ -100,7 +100,7 @@ func (a *StaticAutoscaler) RunOnce(currentTime time.Time) *errors.AutoscalerErro
return errors.ToAutoscalerError(errors.ApiCallError, err)
}
if len(allNodes) == 0 {
glog.Error("No nodes in the cluster")
glog.Warningf("No nodes in the cluster")
scaleDown.CleanUpUnneededNodes()
return nil
}
Expand Down Expand Up @@ -140,7 +140,7 @@ func (a *StaticAutoscaler) RunOnce(currentTime time.Time) *errors.AutoscalerErro
if removedAny {
glog.Warningf("Some unregistered nodes were removed, but got error: %v", err)
} else {
glog.Warningf("Failed to remove unregistered nodes: %v", err)
glog.Errorf("Failed to remove unregistered nodes: %v", err)

}
return errors.ToAutoscalerError(errors.CloudProviderError, err)
Expand All @@ -157,7 +157,7 @@ func (a *StaticAutoscaler) RunOnce(currentTime time.Time) *errors.AutoscalerErro
// TODO: andrewskim - add protection for ready AWS nodes.
fixedSomething, err := fixNodeGroupSize(autoscalingContext, time.Now())
if err != nil {
glog.Warningf("Failed to fix node group sizes: %v", err)
glog.Errorf("Failed to fix node group sizes: %v", err)
return errors.ToAutoscalerError(errors.CloudProviderError, err)
}
if fixedSomething {
Expand Down

0 comments on commit ef58a9c

Please sign in to comment.