Skip to content

Commit

Permalink
chore: update log output for pingdom
Browse files Browse the repository at this point in the history
  • Loading branch information
karlderkaefer committed Jan 22, 2024
1 parent 8dff896 commit d18cdc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/monitors/pingdom/pingdom-monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (service *PingdomMonitorService) Add(m models.Monitor) {

_, err := service.client.Checks.Create(&httpCheck)
if err != nil {
log.Info("Error Adding Monitor: " + err.Error())
log.Info(fmt.Sprintf("Error Adding Monitor %s %v", m.Name, err.Error()))
} else {
log.Info("Added monitor for: " + m.Name)
}
Expand Down Expand Up @@ -123,6 +123,7 @@ func (service *PingdomMonitorService) createHttpCheck(monitor models.Monitor) pi
httpCheck := pingdom.HttpCheck{}
url, err := url.Parse(monitor.URL)
if err != nil {
log.Info(fmt.Sprintf("Error parsing url '%s' of monitor %s", monitor.Name, service.url))
log.Info("Unable to parse the URL: " + service.url)
}

Expand Down

0 comments on commit d18cdc5

Please sign in to comment.