diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-11-20 18:10:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-20 18:10:56 +0100 |
commit | 864fe21ed02ca6faa72e6a94f06c9961167aca7d (patch) | |
tree | 494af9399fb717aaa484454db4fdb33c3f03b202 /pkg/api/server/handler_api.go | |
parent | 042d4884ea35467df5da053627e5535e82fb2d27 (diff) | |
parent | d8795a36b2ed8c53f0597ab14f46935ea977e84b (diff) | |
download | podman-864fe21ed02ca6faa72e6a94f06c9961167aca7d.tar.gz podman-864fe21ed02ca6faa72e6a94f06c9961167aca7d.tar.bz2 podman-864fe21ed02ca6faa72e6a94f06c9961167aca7d.zip |
Merge pull request #8406 from jwhonce/issues/8390
Make podman service log events
Diffstat (limited to 'pkg/api/server/handler_api.go')
-rw-r--r-- | pkg/api/server/handler_api.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/api/server/handler_api.go b/pkg/api/server/handler_api.go index 28f5a0b42..1d0ddb457 100644 --- a/pkg/api/server/handler_api.go +++ b/pkg/api/server/handler_api.go @@ -30,14 +30,14 @@ func (s *APIServer) APIHandler(h http.HandlerFunc) http.HandlerFunc { // Wrapper to hide some boiler plate fn := func(w http.ResponseWriter, r *http.Request) { rid := uuid.New().String() + logrus.Infof("APIHandler(%s) -- %s %s BEGIN", rid, r.Method, r.URL.String()) if logrus.IsLevelEnabled(logrus.DebugLevel) { - logrus.Debugf("APIHandler(%s) -- Method: %s URL: %s", rid, r.Method, r.URL.String()) for k, v := range r.Header { switch auth.HeaderAuthName(k) { case auth.XRegistryConfigHeader, auth.XRegistryAuthHeader: - logrus.Debugf("APIHandler(%s) -- Header: %s: <hidden>", rid, k) + logrus.Debugf("APIHandler(%s) -- Header: %s=<hidden>", rid, k) default: - logrus.Debugf("APIHandler(%s) -- Header: %s: %v", rid, k, v) + logrus.Debugf("APIHandler(%s) -- Header: %s=%v", rid, k, v) } } } @@ -63,6 +63,7 @@ func (s *APIServer) APIHandler(h http.HandlerFunc) http.HandlerFunc { w.Header().Set("Server", "Libpod/"+lv+" ("+runtime.GOOS+")") h(w, r) + logrus.Debugf("APIHandler(%s) -- %s %s END", rid, r.Method, r.URL.String()) } fn(w, r) } |