Skip to content

Commit 14e9530

Browse files
added filter for vector lengths
1 parent b688dd6 commit 14e9530

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

edgraph/server.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,8 +1248,10 @@ func (s *Server) doQuery(ctx context.Context, req *Request) (resp *api.Response,
12481248
l := &query.Latency{}
12491249
l.Start = time.Now()
12501250

1251-
glog.Infof("Got a query, DQL form: %+v %+v at %+v",
1252-
req.req.Query, req.req.Mutations, l.Start.Format(time.RFC3339))
1251+
if bool(glog.V(3)) || worker.LogDQLRequestEnabled() {
1252+
glog.Infof("Got a query, DQL form: %+v %+v at %+v",
1253+
req.req.Query, req.req.Mutations, l.Start.Format(time.RFC3339))
1254+
}
12531255

12541256
isMutation := len(req.req.Mutations) > 0
12551257
methodRequest := methodQuery

0 commit comments

Comments
 (0)