Remove unnecessary var data in log messages. Closes #1640

This commit is contained in:
Gabe Kangas
2022-02-25 15:22:52 -08:00
parent 1c02ed291b
commit 6796998124
7 changed files with 14 additions and 24 deletions

View File

@@ -16,8 +16,6 @@ func InternalErrorHandler(w http.ResponseWriter, err error) {
return
}
log.Errorln(err)
w.WriteHeader(http.StatusInternalServerError)
if err := json.NewEncoder(w).Encode(j{"error": err.Error()}); err != nil {
InternalErrorHandler(w, err)