Development

Changeset 5844

You must first sign up to be able to contribute.

Changeset 5844

Show
Ignore:
Timestamp:
11/04/07 16:36:10 (1 year ago)
Author:
fabien
Message:

added a new xdebug_logging parameter to sfWebDebugLogger - this parameter is true by default (closes #1802)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/data/config/factories.yml

    r4894 r5844  
    4747          class: sfWebDebugLogger 
    4848          param: 
    49             condition: %SF_WEB_DEBUG% 
     49            condition:      %SF_WEB_DEBUG% 
     50            xdebug_logging: true 
    5051        sf_file_debug: 
    5152          class: sfFileLogger 
  • trunk/lib/log/sfWebDebugLogger.class.php

    r5109 r5844  
    2020{ 
    2121  protected 
    22     $context  = null, 
    23     $buffer   = array(), 
    24     $webDebug = null; 
     22    $context       = null, 
     23    $buffer        = array(), 
     24    $webDebug      = null, 
     25    $xdebugLogging = false; 
    2526 
    2627  /** 
     
    4243    $this->context = sfContext::getInstance(); 
    4344 
     45    if (isset($options['xdebug_logging'])) 
     46    { 
     47      $this->xdebugLogging = $options['xdebug_logging']; 
     48    } 
     49 
    4450    return parent::initialize($dispatcher, $options); 
    4551  } 
     
    5864    } 
    5965 
    60     // if we have xdebug, add some stack information 
     66    // if we have xdebug and dev has not disabled the feature, add some stack information 
    6167    $debugStack = array(); 
    62     if (function_exists('xdebug_get_function_stack')
     68    if (function_exists('xdebug_get_function_stack') && $this->xdebugLogging
    6369    { 
    6470      foreach (xdebug_get_function_stack() as $i => $stack)