1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-11 16:32:57 +00:00

Another log fix

This commit is contained in:
Jkorf
2021-09-23 11:32:33 +02:00
parent 6c9805993f
commit e697c35876
+2 -2
View File
@@ -221,7 +221,7 @@ namespace CryptoExchange.Net
log.Write(LogLevel.Information, $"[{requestId}] Request {uri.AbsolutePath} was limited by {limitResult.Data}ms by {limiter.GetType().Name}");
}
string? paramString = null;
string? paramString = "";
if (paramsPosition == HttpMethodParameterPosition.InBody)
paramString = " with request body " + request.Content;
@@ -229,7 +229,7 @@ namespace CryptoExchange.Net
{
var headers = request.GetHeaders();
if (headers.Any())
paramString = " with headers " + string.Join(", ", headers.Select(h => h.Key + $"=[{string.Join(",", h.Value)}]"));
paramString += " with headers " + string.Join(", ", headers.Select(h => h.Key + $"=[{string.Join(",", h.Value)}]"));
}
log.Write(LogLevel.Debug, $"[{requestId}] Sending {method}{(signed ? " signed" : "")} request to {request.Uri}{paramString ?? " "}{(apiProxy == null ? "" : $" via proxy {apiProxy.Host}")}");