Skip to content

Commit f0a32c6

Browse files
authored
Merge pull request #5617 from fidencio/wip/shimv2-debug
runtime,v2: Enable debug when containerd is on debug+ log level
2 parents 1bbee57 + 87a2e0b commit f0a32c6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

runtime/v2/binary.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ type binary struct {
5858

5959
func (b *binary) Start(ctx context.Context, opts *types.Any, onClose func()) (_ *shim, err error) {
6060
args := []string{"-id", b.bundle.ID}
61-
if logrus.GetLevel() == logrus.DebugLevel {
61+
switch logrus.GetLevel() {
62+
case logrus.DebugLevel, logrus.TraceLevel:
6263
args = append(args, "-debug")
6364
}
6465
args = append(args, "start")

0 commit comments

Comments
 (0)