1 parent 548134c commit a41be43Copy full SHA for a41be43
1 file changed
main.go
@@ -140,7 +140,7 @@ func main() {
140
}
141
142
if cfg.prometheusEndpoint != "" {
143
- if perr := pushMetrics(ctx, cfg.prometheusEndpoint, cfg.prometheusJob); err != nil {
+ if perr := pushMetrics(ctx, cfg.prometheusEndpoint, cfg.prometheusJob); perr != nil {
144
log.Printf("main: failed to push metrics: %v", perr)
145
recordError(errorCategoryMetricsPush)
146
} else {
0 commit comments