Closed
Description
This issue is automatically created based on existing pull request: #31334: Fix issue with logging each cookie as separate context
Description (*)
When the number of cookies becomes more than 50 the warning log is written: "Unable to send the cookie. Maximum number of cookies would be exceeded." And each cookie is converting to a separate log context. And in the case of using the Graylog app, it is converting to a separate field.
By this pull request, the $_COOKIE array is converting to a string and writing as 'cookie' context while writing the log
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
- Exceed the number of cookies > 50
- Watch the log
Preconditions
Magento 2.4-develop
Steps to reproduce
- Open web browser Firefox
- Navigate to
about:config
- Find
dom.storage.enabled
option and change to false - Open Storefront in a new tab
- Duplicate the tab, open the same page in another tab
- Duplicate the tabs several times (3-4 new tabs)
- Open
debug.log
file from ./var/log folder - Find the text "main.WARNING: Unable to send the cookie. Maximum number of cookies would be exceeded"
Actual Result
Expected Result
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.The issue has been reproduced on latest 2.4-develop branchMajor restrictions or short-term circumventions are required until a fix is available.
Type
Projects
Status
Done