Commit 82e1d3f6 by bergquist

feat(influxdb): disable debug logging in appmode

parent fff26086
......@@ -11,6 +11,7 @@ import (
"golang.org/x/net/context/ctxhttp"
"github.com/grafana/grafana/pkg/log"
"github.com/grafana/grafana/pkg/setting"
"github.com/grafana/grafana/pkg/tsdb"
)
......@@ -50,7 +51,9 @@ func (e *InfluxDBExecutor) Execute(ctx context.Context, queries tsdb.QuerySlice,
return result.WithError(err)
}
glog.Debug("Influxdb query", "raw query", query)
if setting.Env == setting.DEV {
glog.Debug("Influxdb query", "raw query", query)
}
req, err := e.createRequest(query)
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment