mirror of
https://github.com/MistWeatherMedia/i2ME.git
synced 2026-11-28 22:30:55 -08:00
Provide better logging when GetJsonData catches on an error
This commit is contained in:
1 parent
6fa7983bd6
commit
2dd4f511b3
1 file changed
+2
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user