Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't log exception on missing bundle for base name messages #982

Merged
merged 1 commit into from
Aug 17, 2015
Merged

don't log exception on missing bundle for base name messages #982

merged 1 commit into from
Aug 17, 2015

Conversation

fabriciofx
Copy link
Contributor

Small patch do avoid log exception on missing bundle for base name messages.

@@ -77,7 +77,7 @@ private ResourceBundle extractUnsafeBundle(Object bundle, Locale locale) {
try {
return ResourceBundle.getBundle(baseName, locale);
} catch (MissingResourceException e) {
logger.warn("couldn't find message bundle, creating an empty one", e);
logger.warn("couldn't find message bundle, creating an empty one");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you also add the baseName and locale on the message? It'd look like this:

couldn't find message bundle for base name messages, locale en_US. creating ...

@Turini
Copy link
Member

Turini commented May 21, 2015

It sounds great! Thanks for doing this, @fabriciofx. :)

@lucascs
Copy link
Member

lucascs commented May 22, 2015

🚢

@Turini
Copy link
Member

Turini commented Aug 17, 2015

I'm merging here and opening an issue about baseName and locale on message
thanks

Turini added a commit that referenced this pull request Aug 17, 2015
don't log exception on missing bundle for base name messages
@Turini Turini merged commit 99c61b6 into caelum:master Aug 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants