summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToma┼ż Vajngerl <tomaz.vajngerl@collabora.co.uk>2020-02-26 16:03:47 +0100
committerAndras Timar <andras.timar@collabora.com>2020-02-26 16:22:52 +0100
commitaf17b2cd26a1e36edf0b995f81a2e0757086dad1 (patch)
tree7820f0e7e68094a6d6700d5318979a3f5cb6a58d
parent70321a866ce3be1eeea1037a4f688db759c115b2 (diff)
change SAL_WARN to SAL_INFO when language is not setcp-6.2-5CP-Android-iOS-4.2.0
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>
-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 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;
}