From 1828b1f55c5ca812f70bc28fcb2e17feef67884f Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Thu, 5 Jun 2014 15:25:37 +0100 Subject: [PATCH] Only log every query when debugging. Change-Id: I4f988d81cda6f6deb0ed7f497de4aa75409b158f --- web/api/query.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/api/query.go b/web/api/query.go index 3ed773868..043359ed4 100644 --- a/web/api/query.go +++ b/web/api/query.go @@ -67,7 +67,7 @@ func (serv MetricsService) Query(w http.ResponseWriter, r *http.Request) { queryStats := stats.NewTimerGroup() result := ast.EvalToString(exprNode, timestamp, format, serv.Storage, queryStats) - glog.Infof("Instant query: %s\nQuery stats:\n%s\n", expr, queryStats) + glog.V(1).Infof("Instant query: %s\nQuery stats:\n%s\n", expr, queryStats) fmt.Fprint(w, result) } @@ -130,7 +130,7 @@ func (serv MetricsService) QueryRange(w http.ResponseWriter, r *http.Request) { result := ast.TypedValueToJSON(matrix, "matrix") jsonTimer.Stop() - glog.Infof("Range query: %s\nQuery stats:\n%s\n", expr, queryStats) + glog.V(1).Infof("Range query: %s\nQuery stats:\n%s\n", expr, queryStats) fmt.Fprint(w, result) }