summaryrefslogtreecommitdiffstats
path: root/lib/private/NaturalSort.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-03-30 10:55:41 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-04-26 16:52:52 +0200
commit069477e608566c6ea9edbe259b46c591a82bd8af (patch)
treedf1d338e1d61d1c1b2151e1843dfaff7585818d1 /lib/private/NaturalSort.php
parent0654b245280a904068079b71c5339561537fdf78 (diff)
downloadnextcloud-server-069477e608566c6ea9edbe259b46c591a82bd8af.tar.gz
nextcloud-server-069477e608566c6ea9edbe259b46c591a82bd8af.zip
Migrate more classes of lib/private to LoggerInterface
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/NaturalSort.php')
-rw-r--r--lib/private/NaturalSort.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/NaturalSort.php b/lib/private/NaturalSort.php
index d38c4622796..976db4e7803 100644
--- a/lib/private/NaturalSort.php
+++ b/lib/private/NaturalSort.php
@@ -26,7 +26,7 @@
*/
namespace OC;
-use OCP\ILogger;
+use Psr\Log\LoggerInterface;
class NaturalSort {
private static $instance;
@@ -42,7 +42,7 @@ class NaturalSort {
// or inject an instance of \OC\NaturalSort_DefaultCollator to force using Owncloud's default collator
if (isset($injectedCollator)) {
$this->collator = $injectedCollator;
- \OCP\Util::writeLog('core', 'forced use of '.get_class($injectedCollator), ILogger::DEBUG);
+ \OC::$server->get(LoggerInterface::class)->debug('forced use of '.get_class($injectedCollator));
}
}