diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-04 07:34:51 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-04 08:02:55 +0300 |
commit | 14cf2581242c75907fb554e08a30041ad107f558 (patch) | |
tree | 9ce5ab8e5547ef90fb238d8cc15250277fa410f5 /core/ExceptionHandler.php | |
parent | ee6554e1d64bf4a4ecf05bfa513a35de8df3ef9e (diff) |
#6622 Logger refactoring: move to PSR-3 compatibility
- keep the log message as string
- exceptions are logged in context under the "exception" key
- Piwik\Error objects are replaced by \ErrorException (logged the PSR-3 way)
Diffstat (limited to 'core/ExceptionHandler.php')
-rw-r--r-- | core/ExceptionHandler.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/core/ExceptionHandler.php b/core/ExceptionHandler.php index 9bbb5a23ac..8a10bc1e6b 100644 --- a/core/ExceptionHandler.php +++ b/core/ExceptionHandler.php @@ -9,18 +9,10 @@ namespace Piwik; /** - * Contains Piwik's uncaught exception handler and log file formatting for exception - * instances. + * Contains Piwik's uncaught exception handler. */ class ExceptionHandler { - /** - * The backtrace string to use when testing. - * - * @var string - */ - public static $debugBacktraceForTests = null; - public static function setUp() { set_exception_handler(array('Piwik\ExceptionHandler', 'logException')); |