diff --git a/src/main/java/org/olat/core/configuration/PersistedProperties.java b/src/main/java/org/olat/core/configuration/PersistedProperties.java index 075abe7a22cca088caf0734b8f4bb7ba26bb83ef..04c3276b25bc8f175b7e3602e6a1391de706d3ed 100644 --- a/src/main/java/org/olat/core/configuration/PersistedProperties.java +++ b/src/main/java/org/olat/core/configuration/PersistedProperties.java @@ -266,7 +266,9 @@ public class PersistedProperties extends LogDelegator implements Initializable, } } // 3) Not even a value found in the fallback, use 0 - logWarn("No value found for int property::" + propertyName + ", using value=0 instead", null); + if(isLogDebugEnabled()) { + logDebug("No value found for int property::" + propertyName + ", using value=0 instead", null); + } return 0; } @@ -291,7 +293,9 @@ public class PersistedProperties extends LogDelegator implements Initializable, } // 3) Not even a value found in the fallback, return empty string stringValue = (allowEmptyString ? "" : null); - logWarn("No value found for string property::" + propertyName + ", using value=\"\" instead", null); + if(isLogDebugEnabled()) { + logDebug("No value found for string property::" + propertyName + ", using value=\"\" instead"); + } return stringValue; } @@ -311,7 +315,9 @@ public class PersistedProperties extends LogDelegator implements Initializable, if ((stringValue != null) && stringValue.trim().equalsIgnoreCase("TRUE")) { return true; } if ((stringValue != null) && stringValue.trim().equalsIgnoreCase("FALSE")) { return false; } // 3) Not even a value found in the fallback, return false - logWarn("No value found for boolean property::" + propertyName + ", using value=false instead", null); + if(isLogDebugEnabled()) { + logWarn("No value found for boolean property::" + propertyName + ", using value=false instead", null); + } return false; } diff --git a/src/main/java/org/olat/core/util/i18n/I18nModule.java b/src/main/java/org/olat/core/util/i18n/I18nModule.java index 99aa7f09d1f089302c5feccde6f91e6304fa4214..590b2658f037c17f2f5a8876404be4b0b48fb5dd 100644 --- a/src/main/java/org/olat/core/util/i18n/I18nModule.java +++ b/src/main/java/org/olat/core/util/i18n/I18nModule.java @@ -275,7 +275,7 @@ public class I18nModule extends AbstractOLATModule implements Destroyable { if (availableLanguages.contains(languageCode)) { String path = ""; if (transToolApplicationOptLanguagesSrcDir != null) path = transToolApplicationOptLanguagesSrcDir.getAbsolutePath(); - logWarn("Skipping duplicate or previously loaded language::" + languageCode + " found in " +path , null); + logDebug("Skipping duplicate or previously loaded language::" + languageCode + " found in " +path , null); continue; } logDebug("Detected translatable language " + languageCode + " in " + transToolApplicationLanguagesDir.getAbsolutePath(), null); @@ -289,7 +289,7 @@ public class I18nModule extends AbstractOLATModule implements Destroyable { if (isTransToolEnabled()) { for (String languageCode : i18nMgr.searchForAvailableLanguages(transToolApplicationOptLanguagesSrcDir)) { if (availableLanguages.contains(languageCode)) { - logWarn("Skipping duplicate or previously loaded language::" + languageCode + " found in " + transToolApplicationOptLanguagesSrcDir.getAbsolutePath(), null); + logDebug("Skipping duplicate or previously loaded language::" + languageCode + " found in " + transToolApplicationOptLanguagesSrcDir.getAbsolutePath(), null); continue; } logDebug("Detected translatable language " + languageCode + " in " + transToolApplicationOptLanguagesSrcDir.getAbsolutePath(), null); @@ -302,7 +302,7 @@ public class I18nModule extends AbstractOLATModule implements Destroyable { File libDir = new File(WebappHelper.getBuildOutputFolderRoot()); for (String languageCode : i18nMgr.searchForAvailableLanguages(libDir)) { if (availableLanguages.contains(languageCode)) { - logWarn("Skipping duplicate or previously loaded language::" + languageCode + " found in " + libDir.getAbsolutePath(), null); + logDebug("Skipping duplicate or previously loaded language::" + languageCode + " found in " + libDir.getAbsolutePath(), null); continue; } logDebug("Detected non-translatable language " + languageCode + " in " + libDir.getAbsolutePath(), null);