From 437cb82c208254cd682be8b5336556ecb3eb72d8 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 2 Jan 2012 13:45:05 +0000 Subject: [PATCH] Suppression des logs --- application/Bootstrap.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/application/Bootstrap.php b/application/Bootstrap.php index 0f2b86c..c23498f 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -18,23 +18,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap //Initialisation global des paramètres de log protected function _initLogging() { - require_once 'Zend/Log.php'; - require_once 'Zend/Mail.php'; - $WsLogger = new Zend_Log(); - $WsFileWriter = new Zend_Log_Writer_Stream(LOG_PATH.'/wsentreprise.log'); - $WsFileWriter->addFilter(Zend_Log::INFO); - $WsLogger->addWriter($WsFileWriter); - if (APPLICATION_ENV == 'production') - { - $WsMail = new Zend_Mail(); - $WsMail->setFrom('production@scores-decisions.com') - ->addTo('mricois@scores-decisions.com'); - $WsMailWriter = new Zend_Log_Writer_Mail($WsMail); - $WsMailWriter->setSubjectPrependText('ERREUR'); - $WsMailWriter->addFilter(Zend_Log::ERR); - $WsLogger->addWriter($WsMailWriter); - } - Zend_Registry::set('WsLogger', $WsLogger); + } }