show stack trace on missing i18n
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 24 May 2008 16:42:32 +0000 (18:42 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 24 May 2008 16:42:32 +0000 (18:42 +0200)
src/net/pterodactylus/jsite/i18n/I18n.java

index 90df053..0fe571a 100644 (file)
@@ -31,6 +31,7 @@ import java.util.Locale;
 import java.util.MissingResourceException;
 import java.util.Properties;
 import java.util.StringTokenizer;
+import java.util.logging.Level;
 import java.util.logging.Logger;
 
 import javax.swing.KeyStroke;
@@ -92,7 +93,7 @@ public class I18n {
                String value = null;
                value = currentLanguage.getProperty(key);
                if (value == null) {
-                       logger.warning("please fix “" + key + "”!");
+                       logger.log(Level.WARNING, "please fix “" + key + "”!", new Throwable());
                        /* TODO - replace with value when done! */
                        return null;
                }