mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-24 15:02:28 +01:00
Merge pull request #315 from tgabi333/patch-1
fix normalizing exception trace
This commit is contained in:
commit
22f6ebb267
@ -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'];
|
||||
|
@ -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'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user