0

I 've set up my application to send my an email upon error with monolog so I've got some mails and try to confugure what the error was. There was lots of mails with the same error:

event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\HttpKernel\EventListener\StreamedResponseListener::onKernelResponse". [] []

It may be a very general type of error but I cannot understand what it means and I cannot find the corresponding documentation on error logging so I would be very grateful if anyone could help me about what this error means and when is it triggered.

iiirxs
  • 4,493
  • 2
  • 20
  • 35

1 Answers1

0

This is not an error, this is a DEBUG log (as the first part of the line is event.DEBUG).

Monolog don't log only errors, but also warnings, infos, debug, etc... (see Psr\Log\LoggerInterface methods to see the full list).

In your case this is just a debug information that tell you that on the kernel.response event was triggered, and the Symfony\Component\HttpKernel\EventListener\StreamedResponseListener::onKernelResponse has been called to answer this event.

Yann Eugoné
  • 1,311
  • 1
  • 8
  • 17
  • Thank you very much! So I have to change the level on monolog to error instead of debug I have now to get only the errors. Thank you again! – iiirxs Sep 25 '14 at 19:15
  • 1
    Is your app in production? In most cases you would want to turn debug off for production apps since it can slow things down significantly. – Cerad Sep 25 '14 at 20:00