[ECOMMERCE-526] Stop logging ALL to console Created: 30/May/22 Updated: 04/Aug/22 Resolved: 08/Jun/22 |
|
| Status: | Closed |
| Project: | E-commerce |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.2.7 |
| Type: | Task | Priority: | Neutral |
| Reporter: | Maxime Michel | Assignee: | Jesus Alonso |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoR: |
Empty
|
| Date of First Response: | |
| Epic Link: | AuthorX Maintenance |
| Sprint: | AuthX 11 |
| Team: |
| Description |
|
The following configuration file: https://git.magnolia-cms.com/projects/ADDON/repos/ecommerce/browse/magnolia-ecommerce-commercetools-connector/src/main/resources/log4j2.xml Is probably the reason we have 50MB log files in any project that uses the commercetools-connector such as addon-tests: https://jenkins.magnolia-cms.com/job/internal/job/addon-tests/job/master/lastSuccessfulBuild/artifact/catalina-2d034ef9eca1.log The reason for this is seen at the following reference: org.apache.logging.log4j.core.Logger.PrivateConfig#PrivateConfig(org.apache.logging.log4j.core.config.Configuration, org.apache.logging.log4j.core.Logger) With a breakpoint there, one can see that DEBUG/TRACE logging coming from org.apache.commons is visible right after the log4j2.xml file from ecommerce is parsed. This could be solved for instance by setting the level to INFO rather than ALL (done by Maxime). Then it is a matter of verifying that the extreme logging is gone from the addon-packs webapp, and making sure the ecommerce connector also doesn't output debug information at every client request. |
| Comments |
| Comment by Jesus Alonso [ 08/Jun/22 ] |
|
The huge number of logs are not being written anymore thanks to the commit done by mmichel |