[Issue] Fix issue with logging each cookie as separate context #31471
Labels
Component: Stdlib
Fixed in 2.4.x
The issue has been fixed in 2.4-develop branch
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Progress: done
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Severity: S2
Major restrictions or short-term circumventions are required until a fix is available.
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 (*)
Preconditions
Magento 2.4-develop
Steps to reproduce
about:config
dom.storage.enabled
option and change to falsedebug.log
file from ./var/log folderActual Result
Expected Result
The text was updated successfully, but these errors were encountered: