[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - comphelper/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Wed Feb 26 15:23:22 UTC 2020
comphelper/source/misc/lok.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit af17b2cd26a1e36edf0b995f81a2e0757086dad1
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Wed Feb 26 16:03:47 2020 +0100
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Feb 26 16:22:52 2020 +0100
change SAL_WARN to SAL_INFO when language is not set
Change this, so we don't fill the console with warnings.
Change-Id: I089113207be99b50b15cf292cae3e929f9edff26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89556
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index 48b61dea8fa1..7bfd776369e3 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -208,7 +208,7 @@ void setLocale(const LanguageTag& rLanguageTag)
const LanguageTag& getLocale()
{
const LanguageTag& rLocale = g_aLanguageAndLocale.getLocale();
- SAL_WARN_IF(rLocale.getLanguageType() == LANGUAGE_NONE, "comphelper.lok", "Locale not set");
+ SAL_INFO_IF(rLocale.getLanguageType() == LANGUAGE_NONE, "comphelper.lok", "Locale not set");
return rLocale;
}
@@ -220,7 +220,7 @@ void setLanguageTag(const LanguageTag& rLanguageTag)
const LanguageTag& getLanguageTag()
{
const LanguageTag& rLanguage = g_aLanguageAndLocale.getLanguage();
- SAL_WARN_IF(rLanguage.getLanguageType() == LANGUAGE_NONE, "comphelper.lok", "Language not set");
+ SAL_INFO_IF(rLanguage.getLanguageType() == LANGUAGE_NONE, "comphelper.lok", "Language not set");
return rLanguage;
}
More information about the Libreoffice-commits
mailing list