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:
Lukas Reschke 2015-01-05 11:18:11 +01:00
parent f2e759b533
commit 8689605999
1 changed files with 2 additions and 2 deletions

View File

@ -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!'
);