mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Log unexpected json content when debugging
This commit is contained in:
@@ -174,6 +174,11 @@ namespace ArchiSteamFarm {
|
||||
return JsonConvert.DeserializeObject<T>(json);
|
||||
} catch (JsonException e) {
|
||||
ArchiLogger.LogGenericException(e);
|
||||
|
||||
if (Debugging.IsUserDebugging) {
|
||||
ArchiLogger.LogGenericDebug(string.Format(Strings.Content, json));
|
||||
}
|
||||
|
||||
return default(T);
|
||||
}
|
||||
}
|
||||
@@ -294,6 +299,11 @@ namespace ArchiSteamFarm {
|
||||
return JsonConvert.DeserializeObject<T>(json);
|
||||
} catch (JsonException e) {
|
||||
ArchiLogger.LogGenericException(e);
|
||||
|
||||
if (Debugging.IsUserDebugging) {
|
||||
ArchiLogger.LogGenericDebug(string.Format(Strings.Content, json));
|
||||
}
|
||||
|
||||
return default(T);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user