|
@@ -45,7 +45,7 @@ class DeduplicationHandlerTest extends TestCase
|
|
|
@unlink(sys_get_temp_dir().'/monolog_dedup.log');
|
|
@unlink(sys_get_temp_dir().'/monolog_dedup.log');
|
|
|
$handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
|
|
$handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
|
|
|
|
|
|
|
|
- $handler->handle($this->getRecord(Logger::ERROR));
|
|
|
|
|
|
|
+ $handler->handle($this->getRecord(Logger::ERROR, 'Foo:bar'));
|
|
|
$handler->handle($this->getRecord(Logger::CRITICAL));
|
|
$handler->handle($this->getRecord(Logger::CRITICAL));
|
|
|
|
|
|
|
|
$handler->flush();
|
|
$handler->flush();
|
|
@@ -66,7 +66,7 @@ class DeduplicationHandlerTest extends TestCase
|
|
|
$test = new TestHandler();
|
|
$test = new TestHandler();
|
|
|
$handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
|
|
$handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
|
|
|
|
|
|
|
|
- $handler->handle($this->getRecord(Logger::ERROR));
|
|
|
|
|
|
|
+ $handler->handle($this->getRecord(Logger::ERROR, 'Foo:bar'));
|
|
|
$handler->handle($this->getRecord(Logger::CRITICAL));
|
|
$handler->handle($this->getRecord(Logger::CRITICAL));
|
|
|
|
|
|
|
|
$handler->flush();
|
|
$handler->flush();
|