From 4543087258037f2ca611f43736a553055e25985e Mon Sep 17 00:00:00 2001 From: Jack <55409055+Jack1424@users.noreply.github.com> Date: Wed, 26 Jun 2024 22:35:12 -0400 Subject: [PATCH] updated setAPIKey exception logging to a more "robust" method --- .../java/io/github/jack1424/realtimeweather/Configurator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/jack1424/realtimeweather/Configurator.java b/src/main/java/io/github/jack1424/realtimeweather/Configurator.java index 1d4029f..c91110a 100644 --- a/src/main/java/io/github/jack1424/realtimeweather/Configurator.java +++ b/src/main/java/io/github/jack1424/realtimeweather/Configurator.java @@ -191,7 +191,7 @@ public class Configurator { throw new ConfigurationException("The APIKey cannot be blank"); } catch (IOException | ParseException e) { - e.printStackTrace(); + rtw.getLogger().severe(e.getMessage()); throw new ConfigurationException("There was an error when validating this APIKey (this does not mean that the API key is invalid)"); }