|
|
@ -69,7 +69,7 @@ func writeJson(w http.ResponseWriter, r *http.Request, httpStatus int, obj inter |
|
|
|
// wrapper for writeJson - just logs errors
|
|
|
|
func writeJsonQuiet(w http.ResponseWriter, r *http.Request, httpStatus int, obj interface{}) { |
|
|
|
if err := writeJson(w, r, httpStatus, obj); err != nil { |
|
|
|
glog.V(0).Infof("error writing JSON %s: %v", obj, err) |
|
|
|
glog.V(0).Infof("error writing JSON %s status %d: %v", obj, httpStatus, err) |
|
|
|
} |
|
|
|
} |
|
|
|
func writeJsonError(w http.ResponseWriter, r *http.Request, httpStatus int, err error) { |
|
|
|