Changeset 6519
- Timestamp:
- 12/16/07 08:32:29 (2 years ago)
- Files:
-
- trunk/lib/exception/sfError404Exception.class.php (modified) (2 diffs)
- trunk/lib/exception/sfException.class.php (modified) (3 diffs)
- trunk/lib/exception/sfStopException.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/exception/sfError404Exception.class.php
r5139 r6519 24 24 public function printStackTrace() 25 25 { 26 // log all exceptions in php log 27 $exception = is_null($this->wrappedException) ? $this : $this->wrappedException; 28 error_log($exception->getMessage()); 29 26 30 if (sfConfig::get('sf_debug')) 27 31 { … … 32 36 else 33 37 { 34 sfContext::getInstance()->getController()->forward(sfConfig::get('sf_error_404_module'), sfConfig::get('sf_error_404_action')); 38 $context = sfContext::getInstance(); 39 40 $context->getController()->forward(sfConfig::get('sf_error_404_module'), sfConfig::get('sf_error_404_action')); 41 $context->getResponse()->send(); 35 42 } 36 43 } trunk/lib/exception/sfException.class.php
r6518 r6519 51 51 public function printStackTrace() 52 52 { 53 $exception = is_null($this->wrappedException) ? $this : $this->wrappedException; 54 55 // log all exceptions in php log 56 error_log($exception->getMessage()); 57 53 58 if (!sfConfig::get('sf_test')) 54 59 { … … 61 66 try 62 67 { 63 $exception = is_null($this->wrappedException) ? $this : $this->wrappedException;64 68 $this->outputStackTrace($exception); 65 69 } … … 79 83 static protected function outputStackTrace($exception) 80 84 { 81 // log all exceptions in php log82 error_log($exception->getMessage());83 84 85 if (class_exists('sfContext', false) && sfContext::hasInstance()) 85 86 { trunk/lib/exception/sfStopException.class.php
r5139 r6519 24 24 public function printStackTrace() 25 25 { 26 // log all exceptions in php log 27 $exception = is_null($this->wrappedException) ? $this : $this->wrappedException; 28 error_log($exception->getMessage()); 26 29 } 27 30 }

