Merge pull request #5617 from fidencio/wip/shimv2-debug

runtime,v2: Enable debug when containerd is on debug+ log level
This commit is contained in:
Maksym Pavlenko
2021-06-17 10:08:51 -07:00
committed by GitHub

View File

@@ -58,7 +58,8 @@ type binary struct {
func (b *binary) Start(ctx context.Context, opts *types.Any, onClose func()) (_ *shim, err error) {
args := []string{"-id", b.bundle.ID}
if logrus.GetLevel() == logrus.DebugLevel {
switch logrus.GetLevel() {
case logrus.DebugLevel, logrus.TraceLevel:
args = append(args, "-debug")
}
args = append(args, "start")