Skip to content

Commit

Permalink
Add query logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmai committed Mar 16, 2020
1 parent ddcda92 commit 5dfc30a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions edgraph/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,9 @@ func (s *Server) State(ctx context.Context) (*api.Response, error) {

// Query handles queries or mutations
func (s *Server) Query(ctx context.Context, req *api.Request) (*api.Response, error) {
if glog.V(3) {
glog.Infof("Got a query: %+v", req)
}
return s.doQuery(ctx, req, NeedAuthorize)
}

Expand Down

0 comments on commit 5dfc30a

Please sign in to comment.