1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-28 02:06:31 +00:00

Merge pull request from nikkozp/master

Fix log with request body
This commit is contained in:
Jan Korf 2020-01-23 13:51:25 +01:00 committed by GitHub
commit 58e39182a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -181,7 +181,7 @@ namespace CryptoExchange.Net
} }
string? paramString = null; string? paramString = null;
if (parameters != null && method == HttpMethod.Post) if (method == HttpMethod.Post)
paramString = " with request body " + request.Content; 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}")}"); log.Write(LogVerbosity.Debug, $"Sending {method}{(signed ? " signed" : "")} request to {request.Uri}{paramString ?? " "}{(apiProxy == null? "": $" via proxy {apiProxy.Host}")}");