Log the exception class when logging exceptions.

This commit is contained in:
akwizgran
2011-12-08 17:28:05 +00:00
parent 9f0b865ba8
commit 6962814eec
30 changed files with 108 additions and 112 deletions

View File

@@ -57,11 +57,9 @@ public class FontManagerImpl implements FontManager {
font = font.deriveFont(bf.size);
for(String language : bf.languages) fonts.put(language, font);
} catch(FontFormatException e) {
if(LOG.isLoggable(Level.WARNING))
LOG.warning("Could not load font: " + e.getMessage());
if(LOG.isLoggable(Level.WARNING)) LOG.warning(e.toString());
} catch(IOException e) {
if(LOG.isLoggable(Level.WARNING))
LOG.warning("Could not load font: " + e.getMessage());
if(LOG.isLoggable(Level.WARNING)) LOG.warning(e.toString());
}
}
defaultFont = getFont("Sans", 12f);

View File

@@ -105,7 +105,7 @@ public class I18nImpl implements I18n {
UIManager.put(key, bundle.getString(key));
} catch(MissingResourceException e) {
if(LOG.isLoggable(Level.WARNING))
LOG.warning(e.getMessage());
LOG.warning(e.toString());
}
}
}