svn commit: r1865819 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1865819 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java

jleroux@apache.org
Author: jleroux
Date: Sat Aug 24 08:05:43 2019
New Revision: 1865819

URL: http://svn.apache.org/viewvc?rev=1865819&view=rev
Log:
Improved: Wrong log level show for missing labels
(OFBIZ-11159)


The log level for missing labels in UtilProperties is set to Info.
This should however be, at least, of level warning.


Thanks: Pierre Smits for the Jira

Modified:
    ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java

Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java?rev=1865819&r1=1865818&r2=1865819&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java Sat Aug 24 08:05:43 2019
@@ -611,7 +611,9 @@ public final class UtilProperties implem
         if (bundle.containsKey(name)) {
             value = bundle.getString(name);
         } else {
-            Debug.logInfo(name + " misses in " + resource + " for locale " + locale, module);
+            if (Debug.warningOn()) {
+                Debug.logWarning(name + " misses in " + resource + " for locale " + locale, module);
+            }
             return name;
         }
         return value.trim();