Commit ac4cff44 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

- Suppression d'un log intempestif

parent 5406ddd5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -216,7 +216,6 @@ class AbstractOscarController extends AbstractActionController implements UseOsc

    protected function getHttpResponse($code, $content = null)
    {
        $this->getLoggerService()->warning("[http $code] $content");
        $response = new Response();
        $response->setStatusCode($code);
        if ($content !== null) {
+2 −1
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ use Oscar\Exception\OscarException;
use Oscar\Formatter\Spent\SpentActivityDetailsExcelFormater;
use Oscar\Formatter\Spent\SpentActivityExcelFormater;
use Oscar\Provider\Privileges;
use Oscar\Service\LoggerService;
use Oscar\Service\OscarConfigurationService;
use Oscar\Service\OscarUserContext;
use Oscar\Service\ProjectGrantService;
@@ -68,7 +69,7 @@ class DepenseController extends AbstractOscarController implements UseServiceCon
     * @return Logger
     */
    public function getLogger(){
        return $this->getServiceContainer()->get('Logger');
        return $this->getServiceContainer()->get(LoggerService::class);
    }

    /**