Skip to content

Commit

Permalink
Gate logging behind verbose flag
Browse files Browse the repository at this point in the history
  • Loading branch information
all-seeing-code committed Dec 6, 2022
1 parent 5010b8c commit 1e5000d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion edgraph/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1398,8 +1398,11 @@ func processQuery(ctx context.Context, qc *queryContext) (*api.Response, error)
glog.Infof("Finished a query that started at: %+v",
qr.Latency.Start.Format(time.RFC3339))
}

if err != nil {
glog.Infof("Error processing query: %+v\n", err.Error())
if bool(glog.V(3)) {
glog.Infof("Error processing query: %+v\n", err.Error())
}
return resp, errors.Wrap(err, "")
}

Expand Down

0 comments on commit 1e5000d

Please sign in to comment.