Skip to content

Commit

Permalink
fix: change log type of health handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ingvaar committed May 10, 2022
1 parent 1c9688f commit c460a98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/server/handlers/health.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package handlers

import (
"fmt"
"net/http"

"github.com/rs/zerolog/log"
Expand All @@ -12,7 +11,7 @@ func NewHealthRequestHandlerFunc() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
if _, err := w.Write([]byte("")); err != nil {
log.Error().Msg(fmt.Sprintf("Error while sending health response: %v", err))
log.Warn().Msgf("Error while sending health response: %s", err.Error())
}
}
}

0 comments on commit c460a98

Please sign in to comment.