mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
stackdriver: add debug logging
This commit is contained in:
parent
3999578300
commit
b2c6c743ce
@ -55,6 +55,7 @@ func ApplyRoute(ctx context.Context, req *http.Request, proxyPath string, route
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.Info("ds-auth-provider-authenticationType", "debug", e.dsInfo.JsonData.Get("authenticationType"))
|
||||||
authenticationType := ds.JsonData.Get("authenticationType").MustString("jwt")
|
authenticationType := ds.JsonData.Get("authenticationType").MustString("jwt")
|
||||||
if route.JwtTokenAuth != nil && authenticationType == "jwt" {
|
if route.JwtTokenAuth != nil && authenticationType == "jwt" {
|
||||||
logger.Info("authenticationType", "authenticationType", "jwt")
|
logger.Info("authenticationType", "authenticationType", "jwt")
|
||||||
|
@ -96,6 +96,7 @@ func (e *StackdriverExecutor) executeTimeSeriesQuery(ctx context.Context, tsdbQu
|
|||||||
Results: make(map[string]*tsdb.QueryResult),
|
Results: make(map[string]*tsdb.QueryResult),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.Info("executeTimeSeriesQuery-authenticationType", "debug", e.dsInfo.JsonData.Get("authenticationType"))
|
||||||
authenticationType := e.dsInfo.JsonData.Get("authenticationType").MustString(jwtAuthentication)
|
authenticationType := e.dsInfo.JsonData.Get("authenticationType").MustString(jwtAuthentication)
|
||||||
if authenticationType == gceAuthentication {
|
if authenticationType == gceAuthentication {
|
||||||
defaultProject, err := e.getDefaultProject(ctx)
|
defaultProject, err := e.getDefaultProject(ctx)
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/grafana/grafana/pkg/cmd/grafana-cli/logger"
|
||||||
"github.com/grafana/grafana/pkg/components/simplejson"
|
"github.com/grafana/grafana/pkg/components/simplejson"
|
||||||
"golang.org/x/net/context/ctxhttp"
|
"golang.org/x/net/context/ctxhttp"
|
||||||
|
|
||||||
@ -20,6 +21,7 @@ func (e *StackdriverExecutor) executeTestDataSource(ctx context.Context, tsdbQue
|
|||||||
Results: make(map[string]*tsdb.QueryResult),
|
Results: make(map[string]*tsdb.QueryResult),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.Info("executeTestDataSource-authenticationType", "debug", e.dsInfo.JsonData.Get("authenticationType"))
|
||||||
authenticationType := e.dsInfo.JsonData.Get("authenticationType").MustString(jwtAuthentication)
|
authenticationType := e.dsInfo.JsonData.Get("authenticationType").MustString(jwtAuthentication)
|
||||||
if authenticationType == gceAuthentication {
|
if authenticationType == gceAuthentication {
|
||||||
defaultProject, err := e.getDefaultProject(ctx)
|
defaultProject, err := e.getDefaultProject(ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user