From 2dd4f511b38f26d17d2a9b7d5c853b60fb452536 Mon Sep 17 00:00:00 2001 From: "April P." Date: Fri, 9 May 2025 21:07:33 -0700 Subject: [PATCH] Provide better logging when GetJsonData catches on an error --- MistWX-i2Me/API/Base.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MistWX-i2Me/API/Base.cs b/MistWX-i2Me/API/Base.cs index 90f14b9..01e8f38 100644 --- a/MistWX-i2Me/API/Base.cs +++ b/MistWX-i2Me/API/Base.cs @@ -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;