fix wrong log message on Trace level

[NO NEW TESTS NEEDED]

Empty path to runtime binary was printed instead of a real path.

Before fix:
TRAC[0000] found runtime ""
TRAC[0000] found runtime ""

After:
TRAC[0000] found runtime "/usr/bin/crun"
TRAC[0000] found runtime "/usr/bin/runc"

Signed-off-by: Mikhail Khachayants <khachayants@arrival.com>
This commit is contained in:
Mikhail Khachayants
2022-07-12 10:37:46 +03:00
parent 151d7584c1
commit ffbc2adf70

View File

@ -133,7 +133,7 @@ func newConmonOCIRuntime(name string, paths []string, conmonPath string, runtime
continue
}
foundPath = true
logrus.Tracef("found runtime %q", runtime.path)
logrus.Tracef("found runtime %q", path)
runtime.path = path
break
}