public static function procesa($e) { if (DEV_LOG) { Sfphp_Logs::escribe($e); } #Escribir el log de errores if (DEV_SHOWERRORS) { if (stripos($e->getMessage(), "SQLSTATE") > -1) { Sfphp_Logs::pantallaBD($e); } else { Sfphp_Logs::pantalla($e); } } else { header('HTTP/1.1 500 Internal Server Error'); echo "Error interno pide al administrador que revise el log " . str_replace("./Etc/Logs/", "", DEV_LOGFILE); } }