remove excess debug logging

This commit is contained in:
Alexander Zobnin
2020-06-01 12:23:01 +03:00
parent 55c30b5cad
commit 2c10fdf996
4 changed files with 7 additions and 40 deletions

View File

@@ -9,7 +9,6 @@ import (
"io"
"io/ioutil"
"net/http"
"time"
simplejson "github.com/bitly/go-simplejson"
"golang.org/x/net/context/ctxhttp"
@@ -116,15 +115,11 @@ func (ds *ZabbixDatasourceInstance) ZabbixAPIRequest(ctx context.Context, method
Body: rc,
}
tStart := time.Now()
response, err := makeHTTPRequest(ctx, ds.httpClient, req)
if err != nil {
return nil, err
}
requestTime := time.Now().Sub(tStart)
ds.logger.Debug("Response from Zabbix Request", "method", method, "params", params, "duration", requestTime)
return handleAPIResult(response)
}