diff --git a/src/Symfony/Bundle/MonologBundle/Logger/FirePHPHandler.php b/src/Symfony/Bundle/MonologBundle/Logger/FirePHPHandler.php
index <HASH>..<HASH> 100755
--- a/src/Symfony/Bundle/MonologBundle/Logger/FirePHPHandler.php
+++ b/src/Symfony/Bundle/MonologBundle/Logger/FirePHPHandler.php
@@ -14,6 +14,7 @@ namespace Symfony\Bundle\MonologBundle\Logger;
 use Monolog\Handler\FirePHPHandler as BaseFirePHPHandler;
 use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
 use Symfony\Component\HttpFoundation\Response;
+use Symfony\Component\HttpKernel\HttpKernelInterface;
 
 /**
  * FirePHPHandler.
@@ -49,6 +50,10 @@ class FirePHPHandler extends BaseFirePHPHandler
      */
     public function onCoreResponse(FilterResponseEvent $event)
     {
+        if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
+            return;
+        }
+
         $this->response = $event->getResponse();
         foreach ($this->headers as $header => $content) {
             $this->response->headers->set($header, $content);
[MonologBundle] Fixed the handling of subrequests in FirePHPHandler