Skip to content

Commit

Permalink
Remove append and just use the array for key values in the log messag
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
  • Loading branch information
Tyler Reid committed Jul 7, 2021
1 parent 5915489 commit e487e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ruler/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ func RecordAndReportRuleQueryMetrics(qf rules.QueryFunc, queryTime prometheus.Co
queryTime.Add(querySeconds)

// Log ruler query stats.
logMessage := append([]interface{}{
logMessage := []interface{}{
"msg", "query stats",
"component", "ruler",
"cortex_ruler_query_seconds_total", querySeconds,
"query", qs,
})
}
level.Info(util_log.WithContext(ctx, logger)).Log(logMessage...)
}()

Expand Down

0 comments on commit e487e22

Please sign in to comment.