#3270: Allow errors to be logged in production (DEBUG 0)
--------------------------------------------------------------+-------------
    Reporter:  maular                                         |         Owner:  
        
        Type:  Enhancement                                    |        Status:  
reopened
    Priority:  Low                                            |     Milestone:  
1.2.x.x 
   Component:  Core Libs                                      |       Version:  
RC1     
    Severity:  Minor                                          |    Resolution:  
        
    Keywords:  error_log log_errors debugger error_reporting  |   Php_version:  
PHP 5   
Cake_version:  5672                                           |  
--------------------------------------------------------------+-------------
Changes (by aidan):

  * status:  closed => reopened
  * resolution:  wontfix =>

Comment:

 I think we should examine a few givens:
 a) Software will never, ever, ever be totally bug free - there's always
 going to be a chain of completely unpredictable events that somehow, are
 going to lead to an application error
 b) To fix errors, the developer needs to know about them
 c) When an application is running on the production environment, we don't
 want the user to see any errors (unless the error messages are going to
 help them resolve the problem).

 Cake has chosen to not log errors in production mode - this assumes that
 code is either completely bug free (against presupposition a), or that
 developers will somehow discover these bugs through sheer intuition.

 Yes - cake is powerful and flexible enough to override this behavior - but
 why has hiding errors from the user AND developer been made the standard
 behavior? In what possible scenario would this behavior be desirable?

 I apologise for the aggressive tone of this update - I aim to provoke some
 discussion as to the reasons why this behavior was decided on, and
 hopefully persuade the developers that it simply doesn't make sense in a
 real world context.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/3270#comment:3>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to