mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add debug log
This commit is contained in:
parent
468e8c13ee
commit
5e88177f28
@ -11,6 +11,7 @@ import (
|
|||||||
|
|
||||||
"github.com/grafana/grafana/pkg/log"
|
"github.com/grafana/grafana/pkg/log"
|
||||||
"github.com/grafana/grafana/pkg/models"
|
"github.com/grafana/grafana/pkg/models"
|
||||||
|
"github.com/grafana/grafana/pkg/setting"
|
||||||
"github.com/grafana/grafana/pkg/tsdb"
|
"github.com/grafana/grafana/pkg/tsdb"
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws"
|
"github.com/aws/aws-sdk-go/aws"
|
||||||
@ -159,6 +160,10 @@ func (e *CloudWatchExecutor) executeQuery(ctx context.Context, parameters *simpl
|
|||||||
params.ExtendedStatistics = query.ExtendedStatistics
|
params.ExtendedStatistics = query.ExtendedStatistics
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if setting.Env == setting.DEV {
|
||||||
|
plog.Debug("CloudWatch query", "raw query", params)
|
||||||
|
}
|
||||||
|
|
||||||
resp, err := client.GetMetricStatisticsWithContext(ctx, params, request.WithResponseReadTimeout(10*time.Second))
|
resp, err := client.GetMetricStatisticsWithContext(ctx, params, request.WithResponseReadTimeout(10*time.Second))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user