From a69d886540c930eb650c414c8e3aac277e551f40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 23 Nov 2010 21:58:09 +0100 Subject: [PATCH] Improve logging at startup. --- src/main/java/net/pterodactylus/sone/main/SonePlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java index 03ff116..29f67fc 100644 --- a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java +++ b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java @@ -154,6 +154,7 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10 logger.log(Level.INFO, "Could not load configuration file, trying plugin store…"); 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!"); } @@ -161,7 +162,7 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10 oldConfiguration = new Configuration(new PluginStoreConfigurationBackend(pluginRespirator)); logger.log(Level.INFO, "Plugin store loaded."); } catch (DatabaseDisabledException dde1) { - logger.log(Level.SEVERE, "Could not load any configuration, using in-memory configuration!"); + logger.log(Level.SEVERE, "Could not load any configuration, using empty configuration!"); oldConfiguration = new Configuration(new MapConfigurationBackend()); } } -- 2.7.4