1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-19 07:36:17 +02:00
This commit is contained in:
Jordi Boggiano
2013-12-26 11:43:12 +01:00
parent cf2e93b1c3
commit 3926d95f8a
9 changed files with 30 additions and 33 deletions

View File

@@ -30,7 +30,7 @@ class IntrospectionProcessor
private $skipClassesPartials;
public function __construct($level = Logger::DEBUG, array $skipClassesPartials = array('Monolog\\'))
public function __construct($level = Logger::DEBUG, array $skipClassesPartials = array('Monolog\\'))
{
$this->level = $level;
$this->skipClassesPartials = $skipClassesPartials;
@@ -56,18 +56,15 @@ class IntrospectionProcessor
$i = 0;
while (isset($trace[$i]['class']))
{
foreach ($this->skipClassesPartials as $part)
{
if (strpos($trace[$i]['class'], $part) !== false)
{
while (isset($trace[$i]['class'])) {
foreach ($this->skipClassesPartials as $part) {
if (strpos($trace[$i]['class'], $part) !== false) {
$i++;
continue 2;
}
}
break;
}
}
// we should have the call source now
$record['extra'] = array_merge(