Improved: Wrong log level show for missing labels
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
@@ -611,7 +611,9 @@ public final class UtilProperties implements Serializable {
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();
