mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-09 17:06:19 +00:00
Fixed logging
This commit is contained in:
parent
03388b2efa
commit
9773c69d5b
@ -145,14 +145,14 @@ namespace CryptoExchange.Net
|
||||
{
|
||||
var info = $"Deserialize JsonReaderException: {jre.Message}, Path: {jre.Path}, LineNumber: {jre.LineNumber}, LinePosition: {jre.LinePosition}. Data: {stringData}";
|
||||
log?.Write(LogVerbosity.Error, info);
|
||||
if (log == null) Debug.WriteLine(LogVerbosity.Error, info);
|
||||
if (log == null) Debug.WriteLine(info);
|
||||
return null;
|
||||
}
|
||||
catch (JsonSerializationException jse)
|
||||
{
|
||||
var info = $"Deserialize JsonSerializationException: {jse.Message}. Data: {stringData}";
|
||||
log?.Write(LogVerbosity.Error, info);
|
||||
if (log == null) Debug.WriteLine(LogVerbosity.Error, info);
|
||||
if (log == null) Debug.WriteLine(info);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user