Skip to content
Snippets Groups Projects
Commit 68efeba3 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #13125 from owncloud/lower-deprecation-warning-level

degraded logging policy for server container in AppFramework
parents 20886d81 4ffe7ddb
No related branches found
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.
Finish editing this message first!
Please register or to comment