From 335de5a3528a924619f2c7989b0dce90a2c73dc7 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Thu, 5 May 2022 08:59:17 +0200 Subject: [PATCH] Switch to debug logging when locating runtimes Signed-off-by: Evan Lezar --- internal/oci/runtime_low_level.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/oci/runtime_low_level.go b/internal/oci/runtime_low_level.go index ac5aea59..cfc3f635 100644 --- a/internal/oci/runtime_low_level.go +++ b/internal/oci/runtime_low_level.go @@ -32,6 +32,7 @@ func NewLowLevelRuntime(logger *log.Logger, candidates []string) (Runtime, error return nil, fmt.Errorf("error locating runtime: %v", err) } + logger.Infof("Using low-level runtime %v", runtimePath) return NewRuntimeForPath(logger, runtimePath) } @@ -43,13 +44,13 @@ func findRuntime(logger *log.Logger, candidates []string) (string, error) { } for _, candidate := range candidates { - logger.Infof("Looking for runtime binary '%v'", candidate) + logger.Debugf("Looking for runtime binary '%v'", candidate) runcPath, err := exec.LookPath(candidate) if err == nil { - logger.Infof("Found runtime binary '%v'", runcPath) + logger.Debugf("Found runtime binary '%v'", runcPath) return runcPath, nil } - logger.Warnf("Runtime binary '%v' not found: %v", candidate, err) + logger.Debugf("Runtime binary '%v' not found: %v", candidate, err) } return "", fmt.Errorf("no runtime binary found from candidate list: %v", candidates)