1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-09 08:56:13 +00:00

fix log with request body

This commit is contained in:
Mykyta Kochetkov 2019-12-17 14:22:20 +01:00
parent 5017c4d3c8
commit c870370ebb

View File

@ -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}")}");