diff --git a/config.go b/config.go index 4406c85..a986378 100644 --- a/config.go +++ b/config.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "github.com/rs/zerolog/log" "gopkg.in/yaml.v2" "http-server-status/internal/pkg/checks" @@ -23,7 +22,6 @@ type Config struct { } func readConfig() { - fmt.Println(os.Args) filename := "/etc/http-server-status/config.yml" if len(os.Args) > 1 { filename = os.Args[1] diff --git a/internal/pkg/checks/hdd.go b/internal/pkg/checks/hdd.go index 8169c63..fddbb54 100644 --- a/internal/pkg/checks/hdd.go +++ b/internal/pkg/checks/hdd.go @@ -1,7 +1,6 @@ package checks import ( - "github.com/rs/zerolog/log" "github.com/shirou/gopsutil/disk" ) @@ -15,8 +14,7 @@ type HDD struct { func (h HDD) Execute() (ok bool, data interface{}, err error) { success := true - parts, _ := disk.Partitions(true) - log.Debug().Int("max_percent", h.Config.MaxPercent).Msg("Execute HDD Check") + parts, _ := disk.Partitions(false) usage := make(map[string]float64) for _, p := range parts { device := p.Mountpoint