Skip to content

Commit

Permalink
chore(appframework): Remove deprecated and unused DIContainer::log
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Sep 18, 2023
1 parent 76f017a commit e2faf6d
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions lib/private/AppFramework/DependencyInjection/DIContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
use OCP\Security\Bruteforce\IThrottler;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;
use function OCP\Log\logger;

/**
* @deprecated 20.0.0
Expand Down Expand Up @@ -404,33 +403,6 @@ private function getUserId() {
return $this->getServer()->getSession()->get('user_id');
}

/**
* @deprecated use the LoggerInterface instead
* @param string $message
* @param string $level
* @return mixed
*/
public function log($message, $level) {
switch ($level) {
case 'debug':
$level = ILogger::DEBUG;
break;
case 'info':
$level = ILogger::INFO;
break;
case 'warn':
$level = ILogger::WARN;
break;
case 'fatal':
$level = ILogger::FATAL;
break;
default:
$level = ILogger::ERROR;
break;
}
logger($this->getAppName())->log($level, $message);
}

/**
* Register a capability
*
Expand Down

0 comments on commit e2faf6d

Please sign in to comment.