mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
refactor(OC_Util): Remove deprecated ILogger
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
0d31976690
commit
8b79283c6b
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue