mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-24 10:06:08 +02:00
Added the support of a logging context
This commit is contained in:
@@ -33,7 +33,7 @@ abstract class MailHandler extends AbstractProcessingHandler
|
||||
}
|
||||
|
||||
if (!empty($messages)) {
|
||||
$this->send($this->getFormatter()->formatBatch($messages));
|
||||
$this->send((string) $this->getFormatter()->formatBatch($messages));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,8 +49,6 @@ abstract class MailHandler extends AbstractProcessingHandler
|
||||
*/
|
||||
protected function write(array $record)
|
||||
{
|
||||
$content = $record['message'];
|
||||
|
||||
$this->send($content);
|
||||
$this->send((string) $record['formatted']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user