Closed landryb closed 1 year ago
file comes from https://github.com/geosolutions-it/geostore/blob/110018b03f8f7f7ab8f2be0a3c59b1cedadd9b50/src/web/app/src/main/resources/META-INF/cxf/org.apache.cxf.Logger and should be excluded when packaging ms2.war
Describe the bug something i've seen on production since updating https://ids.craig.fr/mapstore/ from 1.3.0 to 2022.01, i had about 10Mb/days of logs in tomcat's catalina.log. Also seeing it on another instance with 2022.02.xx.
The log is filled with apache CXF framework logs dumping requests & replies headers and bodies/payload:
since it contains payloads/json replies too, it can become very large with maps/contexts and base64-encoded images.
after investigating it, it's totally independent from the webapps' log4j configuration. And after digging more, it seems to be caused by the presence in the webapp of a file named
WEB-INF/classes/META-INF/cxf/org.apache.cxf.Logger
containing theorg.apache.cxf.common.logging.Log4jLogger
string, which apparently changes the default logger for CXF per https://cxf.apache.org/javadoc/latest/org/apache/cxf/common/logging/LogUtils.htmli've looked in the Mapstore and mapstore2-georchestra repositories and haven't found what generates that file in the resulting webapp, but that's an issue for two reasons:
apparently it's used by the geostore module ? In the meantime i've removed
WEB-INF/classes/META-INF/cxf/org.apache.cxf.Logger
in the deployed webapp but that's only a workaround since the war still contains it...