Skip to content

Commit 5e59db6

Browse files
lkotuladahlerlend
authored andcommitted
Bug#37539314 - HTTP request and response should be logged conditionally [POSTFIX]
Description =========== Additional error information, should be only returned to the client on developement router. (POST-PUSH FIX WL#15440) Change-Id: Ia2c1fd4adc0349f9b9ececcd7373cdd21919df0b
1 parent 2db1f91 commit 5e59db6

File tree

1 file changed

+2
-1
lines changed
  • router/src/mysql_rest_service/src/mrs/rest

1 file changed

+2
-1
lines changed

router/src/mysql_rest_service/src/mrs/rest/handler.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,8 @@ class RestRequestHandler : public ::http::base::RequestHandler {
759759
}
760760
[[fallthrough]];
761761
default:
762-
if (handler->get_options().debug.http.response.detailed_errors_)
762+
if (handler->get_options().debug.http.response.detailed_errors_ &&
763+
may_log_requests_)
763764
send_rfc7807_error(*ctxt->request, e.status,
764765
responose_encode_error(e, err));
765766
else

0 commit comments

Comments
 (0)