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
commit f0a32c66da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,8 @@ type binary struct {
func (b *binary) Start(ctx context.Context, opts *types.Any, onClose func()) (_ *shim, err error) { func (b *binary) Start(ctx context.Context, opts *types.Any, onClose func()) (_ *shim, err error) {
args := []string{"-id", b.bundle.ID} 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, "-debug")
} }
args = append(args, "start") args = append(args, "start")