Skip to content

Commit db997a7

Browse files
committed
Tone down the error level of missing locale dirs
It is quite fine if e.g. a theme does not have its own locales dir. The exception is already caught, so the application does not actually stop. So, notice it but do not raise high alarms.
1 parent 6f1e577 commit db997a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SimpleSAML/Locale/Localization.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,13 @@ public function getLangPath(string $domain = self::DEFAULT_DOMAIN): string
200200
// Report that the localization for the preferred language is missing
201201
$error = "Localization not found for langcode '$langcode' at '$langPath', falling back to langcode '" .
202202
$defLangcode . "'";
203-
Logger::error($_SERVER['PHP_SELF'] . ' - ' . $error);
203+
Logger::info($_SERVER['PHP_SELF'] . ' - ' . $error);
204204
return $langPath;
205205
}
206206

207207
// Locale for default language missing even, error out
208208
$error = "Localization directory '$langPath' missing/broken for langcode '$langcode' and domain '$domain'";
209-
Logger::critical($_SERVER['PHP_SELF'] . ' - ' . $error);
209+
Logger::info($_SERVER['PHP_SELF'] . ' - ' . $error);
210210
throw new Exception($error);
211211
}
212212

0 commit comments

Comments
 (0)