From f4b89ac754ae64ef63506a44d60c358359295734 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Nahan Date: Tue, 8 Mar 2016 13:24:58 +0100 Subject: [PATCH 1/3] Fix content_type property The property "Content-type" does not exist. Use "content_type" instead. Work for RabbitMQ. --- src/Monolog/Handler/AmqpHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Monolog/Handler/AmqpHandler.php b/src/Monolog/Handler/AmqpHandler.php index 2f79c1c0..95a91fcd 100644 --- a/src/Monolog/Handler/AmqpHandler.php +++ b/src/Monolog/Handler/AmqpHandler.php @@ -64,7 +64,7 @@ class AmqpHandler extends AbstractProcessingHandler 0, array( 'delivery_mode' => 2, - 'Content-type' => 'application/json', + 'content_type' => 'application/json', ) ); } else { From 50241e6cedc99379fbff4d3cff959066960f096e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Nahan Date: Tue, 8 Mar 2016 13:26:16 +0100 Subject: [PATCH 2/3] Update AmqpHandlerTest.php --- tests/Monolog/Handler/AmqpHandlerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Monolog/Handler/AmqpHandlerTest.php b/tests/Monolog/Handler/AmqpHandlerTest.php index 0ea5e725..8e0e7237 100644 --- a/tests/Monolog/Handler/AmqpHandlerTest.php +++ b/tests/Monolog/Handler/AmqpHandlerTest.php @@ -65,7 +65,7 @@ class AmqpHandlerTest extends TestCase 0, array( 'delivery_mode' => 2, - 'Content-type' => 'application/json', + 'content_type' => 'application/json', ), ); From a5f2734e8c16f3aa21b3da09715d10e15b4d2d45 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 13 Mar 2016 16:08:35 +0000 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.mdown | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.mdown b/CHANGELOG.mdown index ff70fc8d..3f33a286 100644 --- a/CHANGELOG.mdown +++ b/CHANGELOG.mdown @@ -1,3 +1,10 @@ +### 1.18.1 (2016-03-13) + + * Fixed SlackHandler bug where slack dropped messages randomly + * Fixed RedisHandler issue when using with the PHPRedis extension + * Fixed AmqpHandler content-type being incorrectly set when using with the AMQP extension + * Fixed BrowserConsoleHandler regression + ### 1.18.0 (2016-03-01) * Added optional reduction of timestamp precision via `Logger->useMicrosecondTimestamps(false)`, disabling it gets you a bit of performance boost but reduces the precision to the second instead of microsecond