From: David ‘Bombe’ Roden Date: Sat, 24 May 2008 16:42:32 +0000 (+0200) Subject: show stack trace on missing i18n X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=60fb20ffa77395529b9c32fd518ea326de7325b5;p=jSite2.git show stack trace on missing i18n --- diff --git a/src/net/pterodactylus/jsite/i18n/I18n.java b/src/net/pterodactylus/jsite/i18n/I18n.java index 90df053..0fe571a 100644 --- a/src/net/pterodactylus/jsite/i18n/I18n.java +++ b/src/net/pterodactylus/jsite/i18n/I18n.java @@ -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; }