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
remotes/origin/fix-10825
Lukas Reschke 12 years ago
parent f2e759b533
commit 8689605999
  1. 4
      lib/private/appframework/dependencyinjection/dicontainer.php

@ -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…
Cancel
Save