[wp-trac] Re: [WordPress Trac] #10202: Enable display_errors if WP_DEBUG is true

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 26 15:27:39 GMT 2009


#10202: Enable display_errors if WP_DEBUG is true
------------------------------+---------------------------------------------
 Reporter:  sivel             |       Owner:                  
     Type:  enhancement       |      Status:  new             
 Priority:  normal            |   Milestone:  2.8.1           
Component:  Warnings/Notices  |     Version:  2.8             
 Severity:  normal            |    Keywords:  has-patch commit
------------------------------+---------------------------------------------

Comment(by sivel):

 Replying to [comment:8 azaozz]:
 > Wouldn't it be better to do:
 > {{{
 > if ( defined('WP_DEBUG_LOG') && WP_DEBUG_LOG ) {
 >     ini_set('log_errors', 1);
 >     ini_set('error_log', WP_CONTENT_DIR . '/debug.log');
 > } else {
 >     ini_set('display_errors', 1);
 > }
 > }}}
 > When debugging you'll want either one or the other.

 Well...what we are trying to achieve is to enable display_errors unless
 the user wants to disable them.  And we only want to set the error_log if
 the user so specifies, that way logging can continue to go to the globally
 defined error_log and not force php to log to the debug.log in wp-content.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10202#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list