[Libreoffice-commits] core.git: comphelper/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Fri Feb 28 12:51:26 UTC 2020
comphelper/source/misc/lok.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0aa27161cefed6f139d6945a3785ee6587e4c9ec
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: Fri Feb 28 13:50:51 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>
(cherry picked from commit af17b2cd26a1e36edf0b995f81a2e0757086dad1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89676
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index 2deb105d8e02..c4e5b8e23979 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -209,7 +209,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;
}
@@ -221,7 +221,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