dev: add more info for logging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kekskurse 2021-09-20 23:12:07 +02:00
parent d6747cd8ce
commit 50fff7b5ad
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4

View file

@ -41,7 +41,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
resJson, err := json.Marshal(httpResposne) resJson, err := json.Marshal(httpResposne)
if err != nil { if err != nil {
log.Fatal().Err(err).Interface("httpResponse", httpResposne).Msg("Check Error") log.Fatal().Err(err).Interface("httpResponse", ResultReturn).Msg("Check Error")
} }
if gloableRes { if gloableRes {
w.Write(resJson) w.Write(resJson)
@ -66,6 +66,7 @@ func checkSystem() (map[string]ResultReturn, bool) {
go func(check checks.Check) { go func(check checks.Check) {
defer wg.Done() defer wg.Done()
s, data, _ := check.Execute() s, data, _ := check.Execute()
log.Debug().Str("check", check.Name()).Bool("status", s).Interface("Data", data).Msg("Executed Check, got Results")
if s == false { if s == false {
globaleResult = false globaleResult = false
} }