@@ -154,13 +154,12 @@ void HandlerAdapter::LogRequest(const http::HttpRequest& request, request::Reque
154154 misc::CutTrailingSlash (request.GetRequestPath (), handler_.GetConfig ().url_trailing_slash );
155155
156156 logging::LogExtra log_extra{
157- {tracing::kHttpMetaType , std::string{ meta_type} },
158- {tracing::kType , std::string{ kTracingTypeRequest } },
157+ {tracing::kHttpMetaType , meta_type},
158+ {tracing::kType , kTracingTypeRequest },
159159 {" request_body_length" , request.RequestBody ().length ()},
160- {std::string{kTracingBody },
161- handler_.GetRequestBodyForLoggingChecked (request, context, request.RequestBody ())},
162- {std::string{kTracingUri }, handler_.GetUrlForLoggingChecked (request, context)},
163- {tracing::kHttpMethod , std::string{request.GetMethodStr ()}},
160+ {kTracingBody , handler_.GetRequestBodyForLoggingChecked (request, context, request.RequestBody ())},
161+ {kTracingUri , handler_.GetUrlForLoggingChecked (request, context)},
162+ {tracing::kHttpMethod , request.GetMethodStr ()},
164163 };
165164 log_extra.Extend (GetHeadersLogExtra (
166165 need_log_request_headers, request, header_whitelist, handler_.GetConfig ().request_headers_size_log_limit
0 commit comments