dev: add more info for logging
continuous-integration/drone/push Build is passing Details

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
1 changed files with 2 additions and 1 deletions

View File

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