mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: Also log statusSource
in error case (#81040)
This commit is contained in:
parent
84e6dc6368
commit
b315c5e54d
@ -205,7 +205,7 @@ func (api *LokiAPI) DataQuery(ctx context.Context, query lokiQuery, responseOpts
|
||||
Error: err,
|
||||
ErrorSource: backend.ErrorSourceFromHTTPStatus(resp.StatusCode),
|
||||
}
|
||||
lp = append(lp, "status", "error", "error", err)
|
||||
lp = append(lp, "status", "error", "error", err, "statusSource", res.ErrorSource)
|
||||
api.log.Error("Error received from Loki", lp...)
|
||||
return &res, nil
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user