Skip to content
Prev Previous commit
Next Next commit
refactor(OC_Util): Remove deprecated ILogger
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Sep 18, 2024
commit 8b79283c6bcd045c16a869fc79dce1e2f582601f
4 changes: 2 additions & 2 deletions lib/private/legacy/OC_Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public static function copySkeleton($userId, \OCP\Files\Folder $userDirectory) {
* @return void
*/
public static function copyr($source, \OCP\Files\Folder $target) {
$logger = \OC::$server->getLogger();
$logger = \OCP\Server::get(LoggerInterface::class);

// Verify if folder exists
$dir = opendir($source);
Expand Down Expand Up @@ -1015,7 +1015,7 @@ public static function normalizeUnicode($value) {

$normalizedValue = Normalizer::normalize($value);
if ($normalizedValue === null || $normalizedValue === false) {
\OC::$server->getLogger()->warning('normalizing failed for "' . $value . '"', ['app' => 'core']);
\OCP\Server::get(LoggerInterface::class)->warning('normalizing failed for "' . $value . '"', ['app' => 'core']);
return $value;
}

Expand Down