Skip to content

Commit

Permalink
Removed log row and wrongly placed configured
Browse files Browse the repository at this point in the history
  • Loading branch information
thunef committed Nov 1, 2023
1 parent a7ee17a commit 4abafde
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion pkg/monitors/statuscake/statuscake-monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ func (service *StatusCakeMonitorService) Remove(m models.Monitor) {
log.Error(nil, fmt.Sprintf("Delete Request failed for Monitor: %s with id: %s", m.Name, m.ID))

} else {
log.Info("Statuscode for Remove monitor is 'StatusNoContent'")
_, err = service.GetByID(m.ID)
if strings.Contains(err.Error(), "Request failed") {
log.Info("Monitor Deleted: " + m.ID + m.Name)
Expand Down
8 changes: 0 additions & 8 deletions pkg/monitors/uptimerobot/uptime-status-page.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,9 @@ import (
"github.com/stakater/IngressMonitorController/v2/pkg/http"
"github.com/stakater/IngressMonitorController/v2/pkg/models"
"github.com/stakater/IngressMonitorController/v2/pkg/util"
ctrl "sigs.k8s.io/controller-runtime"
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
)

func init() {
// To allow normal logging to be printed if tests fails
// Dev mode is an extra feature to make output more readable
ctrl.SetLogger(zap.New(zap.UseDevMode(true)))
}

var log = logf.Log.WithName("uptime-monitor-test")

type UpTimeStatusPageService struct {
Expand Down

0 comments on commit 4abafde

Please sign in to comment.