From 44664c25a3d5bdceb33fec49fcc02966cd1b38d0 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 6 Dec 2023 12:46:13 +0100 Subject: [PATCH] cmd/run: Style fixes This makes it easier to spot the beginning of functions with long lists of parameters and return values. https://github.com/containers/toolbox/pull/1415 --- src/cmd/run.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cmd/run.go b/src/cmd/run.go index 1457b6d..03c1184 100644 --- a/src/cmd/run.go +++ b/src/cmd/run.go @@ -166,6 +166,7 @@ func runCommand(container string, preserveFDs uint, command []string, emitEscapeSequence, fallbackToBash, pedantic bool) error { + if !pedantic { if image == "" { panic("image not specified") @@ -300,6 +301,7 @@ func runCommandWithFallbacks(container string, preserveFDs uint, command []string, emitEscapeSequence, fallbackToBash bool) error { + logrus.Debug("Checking if 'podman exec' supports disabling the detach keys") var detachKeysSupported bool @@ -485,6 +487,7 @@ func constructExecArgs(container, preserveFDs string, fallbackToBash bool, ttyNeeded bool, workDir string) []string { + logLevelString := podman.LogLevel.String() execArgs := []string{