Skip to content

Commit

Permalink
log headers
Browse files Browse the repository at this point in the history
Signed-off-by: sal rashid <[email protected]>
  • Loading branch information
salrashid123 committed Nov 11, 2024
1 parent 619e886 commit b2ddd10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ func (h *MetadataServer) checkMetadataHeaders(next http.Handler) http.Handler {

glog.V(10).Infof("Got Request: path[%s] query[%s]", r.URL.Path, r.URL.RawQuery)

for k, v := range r.Header {
glog.V(20).Infof("%s: %s", k, v)
}

if r.URL.Query().Has("recursive") {
if strings.ToLower(r.URL.Query().Get("recursive")) == "true" {
glog.Warning("WARNING: ?recursive=true has limited depth support; check handler implementation")
Expand Down

0 comments on commit b2ddd10

Please sign in to comment.