1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-09 06:36:46 +02:00

Fix build

This commit is contained in:
Jordi Boggiano
2014-07-28 21:30:28 +02:00
parent 55b60344a8
commit ac3f343f2d

View File

@@ -38,7 +38,7 @@ class AmqpHandler extends AbstractProcessingHandler
public function __construct($exchange, $exchangeName = 'log', $level = Logger::DEBUG, $bubble = true)
{
if ($exchange instanceof AMQPExchange) {
$this->exchange->setName($exchangeName);
$exchange->setName($exchangeName);
} elseif ($exchange instanceof AMQPChannel) {
$this->exchangeName = $exchangeName;
} else {