Skip to content

Commit 32a011e

Browse files
committed
Log the URL when calling a datasource from the proxy
1 parent 9a24f2e commit 32a011e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/api/dataproxy.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/grafana/grafana/pkg/api/cloudwatch"
1212
"github.com/grafana/grafana/pkg/api/keystone"
1313
"github.com/grafana/grafana/pkg/bus"
14+
"github.com/grafana/grafana/pkg/log"
1415
"github.com/grafana/grafana/pkg/metrics"
1516
"github.com/grafana/grafana/pkg/middleware"
1617
m "github.com/grafana/grafana/pkg/models"
@@ -67,6 +68,8 @@ func NewReverseProxy(ds *m.DataSource, proxyPath string, targetUrl *url.URL) *ht
6768
// clear cookie headers
6869
req.Header.Del("Cookie")
6970
req.Header.Del("Set-Cookie")
71+
72+
log.Info("Proxying call to %s", req.URL.String())
7073
}
7174

7275
return &httputil.ReverseProxy{Director: director, FlushInterval: time.Millisecond * 200}

0 commit comments

Comments
 (0)