Skip to content

Commit 827c161

Browse files
committed
chore: log errors
1 parent b16c47e commit 827c161

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/api/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ func (s *Server) forwardResponseOption() func(ctx context.Context, w http.Respon
150150

151151
func (s *Server) errorHandler() func(ctx context.Context, mux *runtime.ServeMux, marshaler runtime.Marshaler, w http.ResponseWriter, r *http.Request, err error) {
152152
return func(ctx context.Context, mux *runtime.ServeMux, marshaler runtime.Marshaler, w http.ResponseWriter, r *http.Request, reqError error) {
153+
s.logger.Errorf("request error: %v", reqError)
154+
153155
code := status.Code(reqError)
154156
errCode := sharedv1.ErrorCode_ERROR_CODE_UNKNOWN
155157
if code >= codes.Code(sharedv1.ErrorCode_ERROR_CODE_UNKNOWN) {

0 commit comments

Comments
 (0)