Skip to content

Commit 5d7a948

Browse files
committed
minor tweaks and formatting
1 parent 7a5d999 commit 5d7a948

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type Config struct {
5555
// Debug Whether to enable debug logs
5656
Debug bool `yaml:"debug,omitempty"`
5757

58-
// Log level: DEBUG, INFO, WARN, ERROR. Default: INFO
58+
// LogLevel is one of DEBUG, INFO, WARN and ERROR. Defaults to INFO
5959
LogLevel logr.Level `yaml:"log-level,omitempty"`
6060

6161
// Metrics Whether to expose metrics at /metrics

go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ module github.com/TwiN/gatus/v5
22

33
go 1.22.4
44

5-
toolchain go1.23.0
6-
75
require (
86
code.gitea.io/sdk/gitea v0.19.0
97
github.com/TwiN/deepmerge v0.2.1

main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"github.com/TwiN/gatus/v5/controller"
1313
"github.com/TwiN/gatus/v5/storage/store"
1414
"github.com/TwiN/gatus/v5/watchdog"
15-
1615
"github.com/TwiN/logr"
1716
)
1817

@@ -25,7 +24,6 @@ func main() {
2524
if err != nil {
2625
panic(err)
2726
}
28-
2927
configureLogging(cfg)
3028
initializeStorage(cfg)
3129
start(cfg)

watchdog/watchdog.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ func execute(ep *endpoint.Endpoint, alertingConfig *alerting.Config, maintenance
6969
logr.Infof("[watchdog.execute] No connectivity; skipping execution")
7070
return
7171
}
72-
7372
logr.Debugf("[watchdog.execute] Monitoring group=%s; endpoint=%s", ep.Group, ep.Name)
7473

7574
result := ep.EvaluateHealth()
@@ -88,7 +87,6 @@ func execute(ep *endpoint.Endpoint, alertingConfig *alerting.Config, maintenance
8887
} else {
8988
logr.Debugf("[watchdog.execute] Not handling alerting because currently in the maintenance window")
9089
}
91-
9290
logr.Debugf("[watchdog.execute] Waiting for interval=%s before monitoring group=%s endpoint=%s again", ep.Interval, ep.Group, ep.Name)
9391
}
9492

0 commit comments

Comments
 (0)