From d7f52cdd1e608a52be3d0adf71397499410c62cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no>
Date: Mon, 16 Sep 2019 11:17:28 +0200
Subject: [PATCH] Downgrade missing translations from error to debug

This is something the developer of a module is supposed to deal with. If you are just using SSP, it doesn't make much sense to have your log files flooded by errors about missing translation files or directories, since you cannot do anything about it and the original english text will be used anyway.
---
 lib/SimpleSAML/Locale/Localization.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/SimpleSAML/Locale/Localization.php b/lib/SimpleSAML/Locale/Localization.php
index 8a9346aac..3731b1e4d 100644
--- a/lib/SimpleSAML/Locale/Localization.php
+++ b/lib/SimpleSAML/Locale/Localization.php
@@ -240,7 +240,7 @@ class Localization
             $langPath = $this->getLangPath($domain);
         } catch (\Exception $e) {
             $error = "Something went wrong when trying to get path to language file, cannot load domain '$domain'.";
-            Logger::error($_SERVER['PHP_SELF'].' - '.$error);
+            Logger::debug($_SERVER['PHP_SELF'].' - '.$error);
             if ($catchException) {
                 // bail out!
                 return;
@@ -255,7 +255,7 @@ class Localization
             $this->translator->loadTranslations($translations);
         } else {
             $error = "Localization file '$poFile' not found in '$langPath', falling back to default";
-            Logger::error($_SERVER['PHP_SELF'].' - '.$error);
+            Logger::debug($_SERVER['PHP_SELF'].' - '.$error);
         }
     }
 
-- 
GitLab