Provide better logging when GetJsonData catches on an error

This commit is contained in:
April P. committed 2025-05-09 21:07:33 -07:00
1 parent 6fa7983bd6
commit 2dd4f511b3
1 file changed
+2 -3
+2 -3
View File
@@ -240,7 +240,7 @@ public class Base
}
catch (JsonException exception)
{
Log.Error($"Failed to parse JSON data for {RecordName}");
Log.Error($"Failed to parse {RecordName} data for location {location}.");
Log.Debug(exception.Message);
// Print stacktrace to the debug console if applicable
@@ -252,8 +252,7 @@ public class Base
}
}
Log.Warning($"Failed to generate {RecordName} due to null response.");
Log.Warning($"{RecordName} returned no data for location {location}.");
}
return results;