Skip to content

Commit

Permalink
debug : print request metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
hxms committed Jan 11, 2024
1 parent 41f421c commit 7e63833
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/handler/rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package rpc

import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
Expand Down Expand Up @@ -126,6 +127,8 @@ func (h *rpcHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
md[textproto.CanonicalMIMEHeaderKey(k)] = r.Header.Get(k)
}

fmt.Printf("md: %v\n", md)

// merge context with overwrite
cx = metadata.MergeContext(cx, md, true)

Expand Down

0 comments on commit 7e63833

Please sign in to comment.