mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-25 23:55:56 +03:00
[GH-ISSUE #172] Response headers too big when using Chrome PHP handler #57
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tobion on GitHub (Mar 13, 2013).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/172
I just found a problem with the chrome php logger that is now enabled by default in symfony.
When the response headers get too big, chrome will simply show an error page.
Tthis seems to happen pretty fast, e.g. when using sonata admin.
Eeven curl raises an error when the headers are too big.
So the handler should probably limit it automatically, so the page does not get unusable.
About the limit: According to curl: "avoided giant realloc for header (max is 102400)"
Don't know the exact limit for Chrome.
@stof commented on GitHub (Mar 13, 2013):
There is nothing we can do here IMO. the issue is the way ChromePHP works, getting all log messages in a single header. The way Firephp works (using 1 header per log message) avoids getting too big headers.
This should probably be reported to ChromePHP itself.
@Seldaek commented on GitHub (Mar 13, 2013):
We can stop appending to the header once it reached the max size of chrome (once that is known). Better have incomplete logs than a broken page IMO.
@Seldaek commented on GitHub (Apr 23, 2013):
Researched it a bit and I patched it, chrome seems to have a limit of 256KB across all headers, so splitting it like firephp wouldn't help. Anyway if someone can confirm it works fine it'd be nice.