Some people may wish to turn off FreePBX's error logging capability and use the native error handler.You may do this by adding $bootstrap_settings['freepbx_error_handler'] before requiring bootstrap.php in /etc/freepbx.conf. You can see an example below:


$amp_conf['AMPDBUSER']  = 'freepbxuser';
$amp_conf['AMPDBPASS']  = 'changeme';
$amp_conf['AMPDBHOST']  = 'localhost';
$amp_conf['AMPDBNAME']  = 'asterisk';
$amp_conf['AMPDBENGINE'] = 'mysql';
$amp_conf['datasource'] = ''; //for sqlite3
//Turn off FreePBX Error Handling
$bootstrap_settings['freepbx_error_handler'] = false;

Please note that if you have a module that is using bootstrap, you can do this before bootstrapping as show below:

//Turn off FreePBX Error Handling
$bootstrap_settings['freepbx_error_handler'] = false;
if (!@include_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.conf')) {