From 5692cf0b56705bed98c7f6dc3067859c272055a1 Mon Sep 17 00:00:00 2001 From: Shawn Hurley Date: Thu, 7 Mar 2019 09:11:06 -0500 Subject: [PATCH] Adding max workers to the string of the message instead of a logr field --- pkg/ansible/operator/operator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ansible/operator/operator.go b/pkg/ansible/operator/operator.go index 846fb3612d0..9925e639b19 100644 --- a/pkg/ansible/operator/operator.go +++ b/pkg/ansible/operator/operator.go @@ -89,7 +89,7 @@ func getMaxWorkers(gvk schema.GroupVersionKind, defvalue int) int { if err != nil { // we don't care why we couldn't parse it just use one. // maybe we should log that we are defaulting to 1. - logf.Log.WithName("manager").V(0).Info("Using default value for workers %d", defvalue) + logf.Log.WithName("manager").V(0).Info(fmt.Sprintf("Using default value for workers %d", defvalue)) return defvalue }