1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 12:47:39 +02:00

fix normalizing exception trace

The trace does not include the file / line at which the exception is thrown
This commit is contained in:
Gábor Tóth
2014-01-29 17:20:27 +01:00
committed by Tóth Gábor
parent 7f783c0ab0
commit 3a811ecfda
2 changed files with 0 additions and 2 deletions

View File

@@ -101,7 +101,6 @@ class NormalizerFormatter implements FormatterInterface
);
$trace = $e->getTrace();
array_shift($trace);
foreach ($trace as $frame) {
if (isset($frame['file'])) {
$data['trace'][] = $frame['file'].':'.$frame['line'];

View File

@@ -12,7 +12,6 @@ class ScalarFormatterTest extends \PHPUnit_Framework_TestCase
{
$data = array();
$trace = $e->getTrace();
array_shift($trace);
foreach ($trace as $frame) {
if (isset($frame['file'])) {
$data[] = $frame['file'].':'.$frame['line'];