diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-25 03:11:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 03:11:03 -0400 |
commit | 35cca198b31582b75304e3614f8942b83a38422e (patch) | |
tree | a182e1b52a39557fc49e158b4af95e900b9f6218 /pkg/api/handlers | |
parent | 2df3faab7b2801cc2e3c2291b618ae530223329d (diff) | |
parent | 18300573f98883a4d6af09afe49a1e789e3a8f54 (diff) | |
download | podman-35cca198b31582b75304e3614f8942b83a38422e.tar.gz podman-35cca198b31582b75304e3614f8942b83a38422e.tar.bz2 podman-35cca198b31582b75304e3614f8942b83a38422e.zip |
Merge pull request #6713 from mheon/debug_level
Set syslog for exit commands on log-level=debug
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r-- | pkg/api/handlers/compat/exec.go | 3 |
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 |