From 6c4dbace6fb9454b0e490a2c3fb033ab6684010b Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 8 Dec 2010 06:41:28 +0100 Subject: [PATCH] Log exceptions on startup. --- src/main/java/net/pterodactylus/sone/main/SonePlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java index 867eefb..a0e967e 100644 --- a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java +++ b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java @@ -151,12 +151,12 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10 oldConfiguration = new Configuration(new MapConfigurationBackend(new File("sone.properties"), false)); newConfiguration = oldConfiguration; } catch (ConfigurationException ce1) { - logger.log(Level.INFO, "Could not load configuration file, trying plugin store…"); + logger.log(Level.INFO, "Could not load configuration file, trying plugin store…", ce1); try { newConfiguration = new Configuration(new MapConfigurationBackend(new File("sone.properties"), true)); logger.log(Level.INFO, "Created new configuration file."); } catch (ConfigurationException ce2) { - logger.log(Level.SEVERE, "Could not create configuration file, using Plugin Store!"); + logger.log(Level.SEVERE, "Could not create configuration file, using Plugin Store!", ce2); } try { oldConfiguration = new Configuration(new PluginStoreConfigurationBackend(pluginRespirator)); -- 2.7.4