Avoid log entry if not set for debug (#35741) (#35748)

(cherry picked from commit 6b786e7f68)

Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2021-06-15 12:01:38 -04:00
committed by GitHub
parent 4fd5765354
commit 15c9d4e3e2
+3 -1
View File
@@ -64,7 +64,9 @@ func ApplyRoute(ctx context.Context, req *http.Request, proxyPath string, route
}
}
logger.Info("Requesting", "url", req.URL.String())
if setting.DataProxyLogging {
logger.Debug("Requesting", "url", req.URL.String())
}
}
func getTokenProvider(ctx context.Context, cfg *setting.Cfg, ds *models.DataSource, pluginRoute *plugins.AppPluginRoute,