From 60fb20ffa77395529b9c32fd518ea326de7325b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 24 May 2008 18:42:32 +0200 Subject: [PATCH] show stack trace on missing i18n --- src/net/pterodactylus/jsite/i18n/I18n.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.7.4