This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new 9820fe650 fix: Panic with odd number of key / value arguments
9820fe650 is described below

commit 9820fe6500d8a7457ab2883e4e260ba3d986ff86
Author: Antonin Stefanutti <[email protected]>
AuthorDate: Wed Sep 7 10:56:03 2022 +0200

    fix: Panic with odd number of key / value arguments
---
 pkg/util/camel/camel_util.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/util/camel/camel_util.go b/pkg/util/camel/camel_util.go
index f41dad240..7b6215881 100644
--- a/pkg/util/camel/camel_util.go
+++ b/pkg/util/camel/camel_util.go
@@ -65,10 +65,10 @@ func newSemVerConstraint(versionConstraint string) 
*semver.Constraints {
        constraint, err := semver.NewConstraint(versionConstraint)
        if err != nil || constraint == nil {
                if err != nil {
-                       log.Debug("Unable to parse version constraint: %s, 
error:\n", versionConstraint, err.Error())
+                       log.Debugf("Unable to parse version constraint: %s, 
error: %s", versionConstraint, err.Error())
                }
                if constraint == nil {
-                       log.Debug("Unable to parse version constraint: %s\n", 
versionConstraint)
+                       log.Debugf("Unable to parse version constraint: %s", 
versionConstraint)
                }
        }
 

Reply via email to