remove utils deps
This commit is contained in:
parent
616b42e525
commit
eb774003d7
8 changed files with 46 additions and 88 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue