This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #1 | |
// When you use Zend_Log class to log errors, | |
// please NEVER do this: | |
catch (Exception $e) { | |
Log::err($e->getMessage()); // WRONG! | |
// Lost stacktrace here | |
} | |
// Instead do: | |
catch (Exception $e) { |