Changeset 5844
- Timestamp:
- 11/04/07 16:36:10 (2 years ago)
- Files:
-
- trunk/data/config/factories.yml (modified) (1 diff)
- trunk/lib/log/sfWebDebugLogger.class.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/data/config/factories.yml
r4894 r5844 47 47 class: sfWebDebugLogger 48 48 param: 49 condition: %SF_WEB_DEBUG% 49 condition: %SF_WEB_DEBUG% 50 xdebug_logging: true 50 51 sf_file_debug: 51 52 class: sfFileLogger trunk/lib/log/sfWebDebugLogger.class.php
r5109 r5844 20 20 { 21 21 protected 22 $context = null, 23 $buffer = array(), 24 $webDebug = null; 22 $context = null, 23 $buffer = array(), 24 $webDebug = null, 25 $xdebugLogging = false; 25 26 26 27 /** … … 42 43 $this->context = sfContext::getInstance(); 43 44 45 if (isset($options['xdebug_logging'])) 46 { 47 $this->xdebugLogging = $options['xdebug_logging']; 48 } 49 44 50 return parent::initialize($dispatcher, $options); 45 51 } … … 58 64 } 59 65 60 // if we have xdebug , add some stack information66 // if we have xdebug and dev has not disabled the feature, add some stack information 61 67 $debugStack = array(); 62 if (function_exists('xdebug_get_function_stack') )68 if (function_exists('xdebug_get_function_stack') && $this->xdebugLogging) 63 69 { 64 70 foreach (xdebug_get_function_stack() as $i => $stack)

