Skip to content

Instantly share code, notes, and snippets.

View dmitriy-kerest's full-sized avatar

Dmitriy Kerest dmitriy-kerest

  • Zhitomir, Ukraine
View GitHub Profile
@dmitriy-kerest
dmitriy-kerest / gist:3525081
Created August 30, 2012 09:52 — forked from igorshubovych/gist:3524989
Rules for logging
// #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) {