private static string GetRequestPrettyPrint(RestRequest request, IHttpWebRequest httpWebRequest) { var requestPrettyPrint = httpWebRequest.ToString(); #if DEBUG if (request.Verb == HttpVerb.POST || request.Verb == HttpVerb.PUT) { requestPrettyPrint = string.Concat(requestPrettyPrint, string.Concat(Environment.NewLine, request.GetBody().JsonFormat())); } #endif return(requestPrettyPrint); }