Skip to content

Commit

Permalink
Add log in case of error when fetching the status
Browse files Browse the repository at this point in the history
  • Loading branch information
setaou committed Jul 22, 2024
1 parent 3444f8e commit 1762828
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"encoding/json"
"errors"
"log"
"net/url"
"strings"
"sync"
Expand Down Expand Up @@ -149,6 +150,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {

status, err := e.getOpcacheStatus()
if err != nil {
log.Print(err)
status = new(OPcacheStatus)
}

Expand Down

0 comments on commit 1762828

Please sign in to comment.