aboutsummaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-25 17:05:26 -0400
committerGitHub <noreply@github.com>2020-06-25 17:05:26 -0400
commit6a541f6802bf1adf3c78648d4d933ea8d6652ed2 (patch)
tree16e6250c0dd9df1edae2bf22bc75bcbee36d4583 /pkg/api
parent48ce67fb5630e67f17f2460b30a0f9cddc21ab8f (diff)
parentf7b16d0173a363c322b9bc0ded590d410339626f (diff)
downloadpodman-6a541f6802bf1adf3c78648d4d933ea8d6652ed2.tar.gz
podman-6a541f6802bf1adf3c78648d4d933ea8d6652ed2.tar.bz2
podman-6a541f6802bf1adf3c78648d4d933ea8d6652ed2.zip
Merge pull request #6780 from mheon/even_more_201_backports
Even more v2.0.1 backports
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/handlers/compat/exec.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/exec.go b/pkg/api/handlers/compat/exec.go
index 8f7016903..dae76c061 100644
--- a/pkg/api/handlers/compat/exec.go
+++ b/pkg/api/handlers/compat/exec.go
@@ -62,7 +62,8 @@ func ExecCreateHandler(w http.ResponseWriter, r *http.Request) {
utils.InternalServerError(w, err)
return
}
- exitCommandArgs, err := generate.CreateExitCommandArgs(storageConfig, runtimeConfig, false, true, true)
+ // Automatically log to syslog if the server has log-level=debug set
+ exitCommandArgs, err := generate.CreateExitCommandArgs(storageConfig, runtimeConfig, logrus.IsLevelEnabled(logrus.DebugLevel), true, true)
if err != nil {
utils.InternalServerError(w, err)
return