1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-11 23:54:04 +02:00

Fix bug when messages contain colons

This commit is contained in:
Jordi Boggiano
2016-04-12 19:02:03 +01:00
parent d18eb57ee9
commit 0e3a4bf48b
2 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ class DeduplicationHandlerTest extends TestCase
@unlink(sys_get_temp_dir().'/monolog_dedup.log');
$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->flush();
@@ -66,7 +66,7 @@ class DeduplicationHandlerTest extends TestCase
$test = new TestHandler();
$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->flush();