diff options
Diffstat (limited to 'cmd/monfront/groups.go')
-rw-r--r-- | cmd/monfront/groups.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/monfront/groups.go b/cmd/monfront/groups.go index 0dfa40c..ee13226 100644 --- a/cmd/monfront/groups.go +++ b/cmd/monfront/groups.go @@ -2,7 +2,6 @@ package main import ( "fmt" - "log" "net/http" "strings" ) @@ -56,7 +55,7 @@ where maxstate = 1` if err != nil { con.w.WriteHeader(http.StatusInternalServerError) con.w.Write([]byte("problems with the database")) - log.Printf("could not get check list: %s", err) + con.log.Info("could not get check list", "error", err) return } @@ -67,7 +66,7 @@ where maxstate = 1` if err != nil { con.w.WriteHeader(http.StatusInternalServerError) con.w.Write([]byte("problems with the database")) - log.Printf("could not get check list: %s", err) + con.log.Info("could not get check list", "error", err) return } groups = append(groups, g) @@ -76,7 +75,7 @@ where maxstate = 1` if err := con.loadMappings(); err != nil { con.w.WriteHeader(http.StatusInternalServerError) con.w.Write([]byte("problem with the mappings")) - log.Printf("could not load mappings: %s", err) + con.log.Info("could not load mappings", "error", err) return } con.w.Header()["Content-Type"] = []string{"text/html"} |