Try catching more errors into zendphp.log
This commit is contained in:
parent
a941743ed7
commit
acf06e289f
2 changed files with 20 additions and 23 deletions
|
@ -1,14 +1,4 @@
|
|||
<?php
|
||||
//DateTime in PHP 5.3.0+ need a default timezone set. Set to UTC initially
|
||||
//in case Application_Model_Preference::GetTimezone fails and creates needs to create
|
||||
//a log entry. This log entry requires a call to date(), which then complains that
|
||||
//timezone isn't set. Setting a default timezone allows us to create a a graceful log
|
||||
//that getting the real timezone failed, without PHP complaining that it cannot log because
|
||||
//there is no timezone :|.
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
require_once __DIR__."/logging/Logging.php";
|
||||
Logging::setLogPath('/var/log/airtime/zendphp.log');
|
||||
require_once __DIR__."/configs/conf.php";
|
||||
require_once __DIR__."/configs/ACL.php";
|
||||
require_once 'propel/runtime/lib/Propel.php';
|
||||
|
@ -37,6 +27,7 @@ Zend_Validate::setDefaultNamespaces("Zend");
|
|||
$front = Zend_Controller_Front::getInstance();
|
||||
$front->registerPlugin(new RabbitMqPlugin());
|
||||
|
||||
|
||||
/* The bootstrap class should only be used to initialize actions that return a view.
|
||||
Actions that return JSON will not use the bootstrap class! */
|
||||
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue