How to resolve "logUnsupportedLocale" error in the logs?

Hello,

After migrating from Bonita 7.11.1 to 7.11.3 it seems that the logs became full of the following error:

INFO [http-nio-8080-exec-1] org.bonitasoft.console.common.server.utils.LocaleUtils.logUnsupportedLocale Unsupported locale: "en_US", using locale "en"

Have you ever encountered this error before? Any insight on how it could be resolved?

Thanks a lot,

Hi, this is not an error, it's just an info, this log will not appear anymore after the 7.12.0 Release Candidate.

Hi Ismail,
if this is a problem, you can probably change the logging configuration in logging.properties to log only the warning messages for the logs of this class's packages.
Something like org.bonitasoft.console.common.server.utils.lever=WARNING
HTH

Indeed, however, this message is very recurring and makes the logs almost full of this only message. Do you have information on how it could be resolved? Thanks a lot!

What version of the product are you using?

I’m using Bonita 7.11.3

You could try Anthony's solution which would make it so that the messages don't show anymore. If that is not possible, we can try to find a different solution.

Thank you! In fact, we'd like to keep the log level set to ALL. It'll be great if we can understand this warning message and also stop it from appearing in the logs. ;)

This message appears when you have " en_US " as a language that is set in either:
- The url, by using a parameter "_l" or "locale"
- In the BOS_Locale cookie
- In your browser
This locale is not supported by default and thus, translations don't get applied (if, for example the locale is fr_CA, the website will still display in french). We made a decision to force the locale to switch to a supported locale, which is "fr" in case of "fr_CA" and "en" in your case.

That is the reason why you have the logs.