myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarinsc...@apache.org
Subject svn commit: r293161 - /myfaces/share/trunk/src/java/org/apache/myfaces/util/LocaleUtils.java
Date Sun, 02 Oct 2005 20:35:31 GMT
Author: mmarinschek
Date: Sun Oct  2 13:35:27 2005
New Revision: 293161

URL: http://svn.apache.org/viewcvs?rev=293161&view=rev
Log:
locale error message changed and set to info-level - high enough

Modified:
    myfaces/share/trunk/src/java/org/apache/myfaces/util/LocaleUtils.java

Modified: myfaces/share/trunk/src/java/org/apache/myfaces/util/LocaleUtils.java
URL: http://svn.apache.org/viewcvs/myfaces/share/trunk/src/java/org/apache/myfaces/util/LocaleUtils.java?rev=293161&r1=293160&r2=293161&view=diff
==============================================================================
--- myfaces/share/trunk/src/java/org/apache/myfaces/util/LocaleUtils.java (original)
+++ myfaces/share/trunk/src/java/org/apache/myfaces/util/LocaleUtils.java Sun Oct  2 13:35:27
2005
@@ -47,8 +47,10 @@
     {
         if ((localeString == null) || (localeString.length() == 0))
         {
-            log.error("Locale name null or empty, ignoring");
-            return Locale.getDefault();
+            Locale locale = Locale.getDefault();
+            if(log.isInfoEnabled())
+                log.info("Locale name in faces-config.xml null or empty, setting locale to
default locale : "+locale.toString());
+            return locale;
         }
 
         int separatorCountry = localeString.indexOf('_');



Mime
View raw message