From 67eef05892472c1244bdaae17a6416a65aac728d Mon Sep 17 00:00:00 2001 From: evilsocket Date: Thu, 25 Apr 2019 18:16:35 +0200 Subject: [PATCH] fix: logs when the api.rest http2 stream is closed are now debug logs --- modules/api_rest/api_rest_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/api_rest/api_rest_controller.go b/modules/api_rest/api_rest_controller.go index f1f17411..0abea167 100644 --- a/modules/api_rest/api_rest_controller.go +++ b/modules/api_rest/api_rest_controller.go @@ -36,7 +36,7 @@ func (mod *RestAPI) setAuthFailed(w http.ResponseWriter, r *http.Request) { func (mod *RestAPI) toJSON(w http.ResponseWriter, o interface{}) { w.Header().Set("Content-Type", "application/json") if err := json.NewEncoder(w).Encode(o); err != nil { - mod.Warning("error while encoding object to JSON: %v", err) + mod.Debug("error while encoding object to JSON: %v", err) } }