Skip to content

Commit

Permalink
fix: correct logging of peek/scaling delays
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Aug 17, 2021
1 parent 1ec16d0 commit af42349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/controllers/scaling/scaling.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func GetDesiredReplicas(step dfv1.Step) (int, error) {
if !ok {
return 0, fmt.Errorf("failed to evaluate %q as int, got %T", scale.DesiredReplicas, r)
}
logger.Info("desired replicas", "c", c, "P", P, "p", p, "d", desiredReplicas, "scalingDelay", scalingDelay, "peekDelay", peekDelay)
logger.Info("desired replicas", "c", c, "P", P, "p", p, "d", desiredReplicas, "scalingDelay", scalingDelay.String(), "peekDelay", peekDelay.String())
}
}
if lastScaledAt < scalingDelay {
Expand Down

0 comments on commit af42349

Please sign in to comment.