From f921bc8af5ae5a7fd3558c221e5ea5d73aba9fd2 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Thu, 29 Jun 2023 16:00:11 +0300 Subject: [PATCH] [#143] Fix typo Signed-off-by: Denis Kirillov --- api/handler/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/handler/util.go b/api/handler/util.go index e3a21a9f..de89b435 100644 --- a/api/handler/util.go +++ b/api/handler/util.go @@ -35,7 +35,7 @@ func (h *handler) logAndSendError(w http.ResponseWriter, logText string, reqInfo zap.String("description", logText), zap.Error(err)} fields = append(fields, additional...) - h.log.Error("reqeust failed", fields...) // consider using h.reqLogger (it requires accept context.Context or http.Request) + h.log.Error("request failed", fields...) // consider using h.reqLogger (it requires accept context.Context or http.Request) } func (h *handler) logAndSendErrorNoHeader(w http.ResponseWriter, logText string, reqInfo *api.ReqInfo, err error, additional ...zap.Field) { @@ -48,7 +48,7 @@ func (h *handler) logAndSendErrorNoHeader(w http.ResponseWriter, logText string, zap.String("description", logText), zap.Error(err)} fields = append(fields, additional...) - h.log.Error("reqeust failed", fields...) // consider using h.reqLogger (it requires accept context.Context or http.Request) + h.log.Error("request failed", fields...) // consider using h.reqLogger (it requires accept context.Context or http.Request) } func transformToS3Error(err error) error {