mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-31 18:30:15 +02:00
Merge pull request #315 from tgabi333/patch-1
fix normalizing exception trace
This commit is contained in:
@@ -101,7 +101,6 @@ class NormalizerFormatter implements FormatterInterface
|
|||||||
);
|
);
|
||||||
|
|
||||||
$trace = $e->getTrace();
|
$trace = $e->getTrace();
|
||||||
array_shift($trace);
|
|
||||||
foreach ($trace as $frame) {
|
foreach ($trace as $frame) {
|
||||||
if (isset($frame['file'])) {
|
if (isset($frame['file'])) {
|
||||||
$data['trace'][] = $frame['file'].':'.$frame['line'];
|
$data['trace'][] = $frame['file'].':'.$frame['line'];
|
||||||
|
@@ -12,7 +12,6 @@ class ScalarFormatterTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
$data = array();
|
$data = array();
|
||||||
$trace = $e->getTrace();
|
$trace = $e->getTrace();
|
||||||
array_shift($trace);
|
|
||||||
foreach ($trace as $frame) {
|
foreach ($trace as $frame) {
|
||||||
if (isset($frame['file'])) {
|
if (isset($frame['file'])) {
|
||||||
$data[] = $frame['file'].':'.$frame['line'];
|
$data[] = $frame['file'].':'.$frame['line'];
|
||||||
|
Reference in New Issue
Block a user