diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-03 05:04:03 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-03 05:04:03 +0400 |
commit | e48578145e3cc815cadc8f41c45569ed54079468 (patch) | |
tree | fc2022e9d65309615a934cf225fec52994d35916 /core/API | |
parent | f2e5c90681631373b43ce2414bd436a251384b67 (diff) |
Remove the ResponseBuilder flag and instead use the existing PIWIK_PRINT_ERROR_BACKTRACE
Diffstat (limited to 'core/API')
-rw-r--r-- | core/API/ResponseBuilder.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/API/ResponseBuilder.php b/core/API/ResponseBuilder.php index 55fce0d0d5..692a2ceb71 100644 --- a/core/API/ResponseBuilder.php +++ b/core/API/ResponseBuilder.php @@ -22,8 +22,6 @@ use Piwik\DataTable; */ class ResponseBuilder { - const DISPLAY_BACKTRACE_DEBUG = false; - private $request = null; private $outputFormat = null; @@ -162,12 +160,10 @@ class ResponseBuilder { // If we are in tests, show full backtrace if (defined('PIWIK_PATH_TEST_TO_ROOT')) { - if (self::DISPLAY_BACKTRACE_DEBUG - || \Piwik_ShouldPrintBackTraceWithMessage() - ) { + if (\Piwik_ShouldPrintBackTraceWithMessage()) { $message = $e->getMessage() . " in \n " . $e->getFile() . ":" . $e->getLine() . " \n " . $e->getTraceAsString(); } else { - $message = $e->getMessage() . "\n \n --> To temporarily debug this error further, set const DISPLAY_BACKTRACE_DEBUG=true; in " . basename(__FILE__); + $message = $e->getMessage() . "\n \n --> To temporarily debug this error further, set const PIWIK_PRINT_ERROR_BACKTRACE=true; in index.php"; } return new Exception($message); } |