Use info instead of warning log level
Otherwise the log is flooded as can be seen at https://github.com/owncloud/core/issues/13106 Fixes https://github.com/owncloud/core/issues/13106
This commit is contained in:
parent
f2e759b533
commit
8689605999
|
@ -201,7 +201,7 @@ class DIContainer extends SimpleContainer implements IAppContainer {
|
|||
});
|
||||
|
||||
$this->registerService('ServerContainer', function ($c) {
|
||||
$c->query('OCP\\ILogger')->warning(
|
||||
$c->query('OCP\\ILogger')->info(
|
||||
'Accessing the server container is deprecated. Use type ' .
|
||||
'annotations to inject core services instead!'
|
||||
);
|
||||
|
@ -222,7 +222,7 @@ class DIContainer extends SimpleContainer implements IAppContainer {
|
|||
* App Framework APIs
|
||||
*/
|
||||
$this->registerService('API', function($c){
|
||||
$c->query('OCP\\ILogger')->warning(
|
||||
$c->query('OCP\\ILogger')->info(
|
||||
'Accessing the API class is deprecated! Use the appropriate ' .
|
||||
'services instead!'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue