From c870370ebbe180e3a2955fe7001d05a8c07994fc Mon Sep 17 00:00:00 2001 From: Mykyta Kochetkov Date: Tue, 17 Dec 2019 14:22:20 +0100 Subject: [PATCH] fix log with request body --- CryptoExchange.Net/RestClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CryptoExchange.Net/RestClient.cs b/CryptoExchange.Net/RestClient.cs index 521f9b9..048cf6c 100644 --- a/CryptoExchange.Net/RestClient.cs +++ b/CryptoExchange.Net/RestClient.cs @@ -181,7 +181,7 @@ namespace CryptoExchange.Net } string? paramString = null; - if (parameters != null && method == HttpMethod.Post) + if (method == HttpMethod.Post) paramString = " with request body " + request.Content; log.Write(LogVerbosity.Debug, $"Sending {method}{(signed ? " signed" : "")} request to {request.Uri}{paramString ?? " "}{(apiProxy == null? "": $" via proxy {apiProxy.Host}")}");