summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToma┼ż Vajngerl <tomaz.vajngerl@collabora.co.uk>2020-02-26 16:03:47 +0100
committerMichael Meeks <michael.meeks@collabora.com>2020-05-27 22:14:34 +0100
commit526581b6a935a98ac2f04ab062420faaf8caa6cb (patch)
treec6d05d21014ef1ec350d017e88bd015182b4c6a9
parent5677b442a2385c21e747eaaf337f1a64d7b59076 (diff)
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@collabora.com> Tested-by: Andras Timar <andras.timar@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@collabora.com>
-rw-r--r--comphelper/source/misc/lok.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index 95c628dbbf61..c58a1aa6f547 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -229,7 +229,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;
}
@@ -241,7 +241,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;
}