Skip to content

Commit

Permalink
stop printing error logs in handleForwardResponseOptions (#4594)
Browse files Browse the repository at this point in the history
  • Loading branch information
taichimaeda authored Aug 6, 2024
1 parent 521a51f commit c8a1e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package runtime
import (
"context"
"errors"
"fmt"
"io"
"net/http"
"net/textproto"
Expand Down Expand Up @@ -201,8 +202,7 @@ func handleForwardResponseOptions(ctx context.Context, w http.ResponseWriter, re
}
for _, opt := range opts {
if err := opt(ctx, w, resp); err != nil {
grpclog.Errorf("Error handling ForwardResponseOptions: %v", err)
return err
return fmt.Errorf("error handling ForwardResponseOptions: %w", err)
}
}
return nil
Expand Down

0 comments on commit c8a1e54

Please sign in to comment.