Log unexpected json content when debugging

This commit is contained in:
JustArchi
2017-04-05 14:16:47 +02:00
parent b510c8f28e
commit 275f7d03f8

View File

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