Skip to content
Snippets Groups Projects
Commit 4ffe7ddb authored by Morris Jobke's avatar Morris Jobke
Browse files

degraded logging policy for server container in AppFramework

parent 6a3f69c2
Branches
No related tags found
No related merge requests found
...@@ -201,7 +201,7 @@ class DIContainer extends SimpleContainer implements IAppContainer { ...@@ -201,7 +201,7 @@ class DIContainer extends SimpleContainer implements IAppContainer {
}); });
$this->registerService('ServerContainer', function ($c) { $this->registerService('ServerContainer', function ($c) {
$c->query('OCP\\ILogger')->info( $c->query('OCP\\ILogger')->debug(
'Accessing the server container is deprecated. Use type ' . 'Accessing the server container is deprecated. Use type ' .
'annotations to inject core services instead!' 'annotations to inject core services instead!'
); );
...@@ -222,7 +222,7 @@ class DIContainer extends SimpleContainer implements IAppContainer { ...@@ -222,7 +222,7 @@ class DIContainer extends SimpleContainer implements IAppContainer {
* App Framework APIs * App Framework APIs
*/ */
$this->registerService('API', function($c){ $this->registerService('API', function($c){
$c->query('OCP\\ILogger')->info( $c->query('OCP\\ILogger')->debug(
'Accessing the API class is deprecated! Use the appropriate ' . 'Accessing the API class is deprecated! Use the appropriate ' .
'services instead!' 'services instead!'
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment