dev: add more info for logging
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d6747cd8ce
commit
50fff7b5ad
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue