Skip to content

Commit

Permalink
log response code
Browse files Browse the repository at this point in the history
Signed-off-by: Kuat Yessenov <[email protected]>
  • Loading branch information
kyessenov committed Jan 23, 2019
1 parent 4a0ccfd commit a108a2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/envoy/http/mixer/filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ void Filter::completeCheck(const CheckResponseInfo& info) {

// handle direct response from the route directive
if (route_directive_.direct_response_code() != 0) {
ENVOY_LOG(debug, "Mixer::Filter direct response");
int status_code = route_directive_.direct_response_code();
ENVOY_LOG(debug, "Mixer::Filter direct response {}", status_code);
state_ = Responded;
decoder_callbacks_->sendLocalReply(
Code(route_directive_.direct_response_code()),
route_directive_.direct_response_body(),
Code(status_code), route_directive_.direct_response_body(),
[this](HeaderMap& headers) {
UpdateHeaders(headers, route_directive_.response_header_operations());
},
Expand Down

0 comments on commit a108a2c

Please sign in to comment.