Skip to content

Commit

Permalink
Replacing deprecated constant
Browse files Browse the repository at this point in the history
Signed-off-by: FedericoHeichou <federicoheichou@gmail.com>
  • Loading branch information
FedericoHeichou authored and AndyScherzinger committed Feb 27, 2024
1 parent ec52f99 commit c359344
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files/lib/BackgroundJob/ScanFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IConfig;
+use OCP\ILogger;
use OCP\IDBConnection;
use Psr\Log\LoggerInterface;

Expand Down Expand Up @@ -119,7 +120,7 @@ protected function run($argument) {
$usersScanned[] = $storageUsers[$scanningStrageId];
}

if ($this->config->getSystemValue('loglevel') > \OC\Log::WARN) {
if ($this->config->getSystemValue('loglevel') > ILogger::WARN) {
return;
}

Expand Down

0 comments on commit c359344

Please sign in to comment.