Skip to content

Commit 0acba4d

Browse files
committed
Fix requests logging
1 parent 6ecc418 commit 0acba4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

e2etest/E2ETest/FunctionalTests/FunctionalTestBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public MobileServiceClient GetClient()
3636
string proxyUri = "YOUR_DEVICE_IP_ADDRESS";
3737
staticClient = new MobileServiceClient(runtimeUrl, new HttpClientHandler
3838
{
39-
Proxy = new Microsoft.WindowsAzure.MobileServices.Test.FunctionalTests.WebProxy(new System.Uri(proxyUri))
39+
Proxy = new WebProxy(new Uri(proxyUri))
4040
});
4141
*/
4242
}
@@ -55,9 +55,9 @@ public LoggingHttpHandler(TestBase test)
5555

5656
protected async override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
5757
{
58-
Test.Log(" >>> {0} {1} {2}", request.Method, request.RequestUri, request.Content);
58+
Test.Log(" >>> {0} {1} {2}", request.Method, request.RequestUri, request.Content?.ReadAsStringAsync().Result);
5959
HttpResponseMessage response = await base.SendAsync(request, cancellationToken);
60-
Test.Log(" <<< {0} {1} {2}", response.StatusCode, response.ReasonPhrase, response.Content);
60+
Test.Log(" <<< {0} {1} {2}", (int)response.StatusCode, response.ReasonPhrase, response.Content?.ReadAsStringAsync().Result);
6161
return response;
6262
}
6363
}

0 commit comments

Comments
 (0)