diff --git a/commands/http/handler.go b/commands/http/handler.go index 8ac3e987f..e5959b4a8 100644 --- a/commands/http/handler.go +++ b/commands/http/handler.go @@ -6,8 +6,11 @@ import ( "net/http" cmds "github.com/jbenet/go-ipfs/commands" + u "github.com/jbenet/go-ipfs/util" ) +var log = u.Logger("commands/http") + type Handler struct { ctx cmds.Context root *cmds.Command @@ -26,6 +29,8 @@ func NewHandler(ctx cmds.Context, root *cmds.Command) *Handler { } func (i Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { + log.Debug("Incoming API request: ", r.URL) + req, err := Parse(r, i.root) if err != nil { if err == ErrNotFound {