mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-22 15:49:53 +01:00
Log the exception class when logging exceptions.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user