remove utils deps

This commit is contained in:
Livio Amstutz 2019-11-29 15:35:37 +01:00
parent 616b42e525
commit eb774003d7
8 changed files with 46 additions and 88 deletions

View file

@ -4,7 +4,7 @@ import (
"encoding/json"
"net/http"
"github.com/caos/utils/logging"
"github.com/sirupsen/logrus"
)
func MarshalJSON(w http.ResponseWriter, i interface{}) {
@ -14,5 +14,7 @@ func MarshalJSON(w http.ResponseWriter, i interface{}) {
return
}
_, err = w.Write(b)
logging.Log("UTILS-zVu9OW").OnError(err).Error("error writing response")
if err != nil {
logrus.Error("error writing response")
}
}