Skip to content

Commit

Permalink
Log the configured config without ToLower
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-mez committed Apr 4, 2022
1 parent ad572f4 commit 2ee2137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (c *ControllerV1) getReinvocationPolicy() admiv1.ReinvocationPolicyType {
case "never":
return admiv1.NeverReinvocationPolicy
default:
log.Warnf("Unknown reinvocation policy %q - defaulting to %q", policy, admiv1.IfNeededReinvocationPolicy)
log.Warnf("Unknown reinvocation policy %q - defaulting to %q", c.config.getReinvocationPolicy(), admiv1.IfNeededReinvocationPolicy)
return admiv1.IfNeededReinvocationPolicy
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (c *ControllerV1beta1) getReinvocationPolicy() admiv1beta1.ReinvocationPoli
case "never":
return admiv1beta1.NeverReinvocationPolicy
default:
log.Warnf("Unknown reinvocation policy %q - defaulting to %q", policy, admiv1beta1.IfNeededReinvocationPolicy)
log.Warnf("Unknown reinvocation policy %q - defaulting to %q", c.config.getReinvocationPolicy(), admiv1beta1.IfNeededReinvocationPolicy)
return admiv1beta1.IfNeededReinvocationPolicy
}
}

0 comments on commit 2ee2137

Please sign in to comment.