diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-02-08 15:47:39 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-02-13 17:32:30 +0100 |
commit | c0ce272e9c3a94ff98081c4f90a31ca611d28323 (patch) | |
tree | e92ba163d28ac3eb888a95718a85a78909cdc7c7 /lib/private/L10N | |
parent | 8822b16d37de1d1a3cec959d184261152c42ae41 (diff) | |
download | nextcloud-server-c0ce272e9c3a94ff98081c4f90a31ca611d28323.tar.gz nextcloud-server-c0ce272e9c3a94ff98081c4f90a31ca611d28323.zip |
chore: Migrate away from OC::$server->getLogger
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/L10N')
-rw-r--r-- | lib/private/L10N/L10N.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/L10N/L10N.php b/lib/private/L10N/L10N.php index ea4aa0527bb..c44e4f9cf49 100644 --- a/lib/private/L10N/L10N.php +++ b/lib/private/L10N/L10N.php @@ -30,6 +30,7 @@ namespace OC\L10N; use OCP\IL10N; use OCP\L10N\IFactory; +use Psr\Log\LoggerInterface; use Punic\Calendar; use Symfony\Component\Translation\IdentityTranslator; @@ -234,7 +235,7 @@ class L10N implements IL10N { $json = json_decode(file_get_contents($translationFile), true); if (!\is_array($json)) { $jsonError = json_last_error(); - \OC::$server->getLogger()->warning("Failed to load $translationFile - json error code: $jsonError", ['app' => 'l10n']); + \OCP\Server::get(LoggerInterface::class)->warning("Failed to load $translationFile - json error code: $jsonError", ['app' => 'l10n']); return false; } |