aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-09-15 01:45:29 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-09-19 00:35:21 +0200
commit8b79283c6bcd045c16a869fc79dce1e2f582601f (patch)
tree55a66091f62e4a09ea9b448532281592588ce04c /lib/private/legacy
parent0d31976690578c27cdd9de71e27e9a6084ead3a4 (diff)
downloadnextcloud-server-8b79283c6bcd045c16a869fc79dce1e2f582601f.tar.gz
nextcloud-server-8b79283c6bcd045c16a869fc79dce1e2f582601f.zip
refactor(OC_Util): Remove deprecated ILogger
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/OC_Util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php
index 84bb0b645d5..e152feb639e 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -175,7 +175,7 @@ class OC_Util {
* @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);
@@ -1015,7 +1015,7 @@ class OC_Util {
$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;
}