Moved logs sessionDestroyed/sessionCreated of the

`UploadedFileHttpSessionListener` from INFO to TRACE level
This commit is contained in:
Francesco Mangiacrapa 2024-06-10 15:25:27 +02:00
parent 4705aaf933
commit 15727874c1
2 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
#### Enhancements
- [#27488] In edit mode allowed to erase (not mandatory) fields according to data type
- [#27627] Moved logs at TRACE level
## [v2.1.1] - 2024-03-19

View File

@ -19,12 +19,12 @@ public class UploadedFileHttpSessionListener implements HttpSessionListener {
@Override
public void sessionDestroyed(HttpSessionEvent event) {
LOG.info("sessionDestroyed called");
LOG.trace("sessionDestroyed called");
try {
HttpSession httpSession = event.getSession();
if(httpSession!=null) {
LOG.info("Sesson id is: "+httpSession.getId());
LOG.trace("Sesson id is: "+httpSession.getId());
List<FileUploaded> listFileUploaded = (List<FileUploaded>) httpSession.getAttribute(ConstantsMPFormBuilder.FILE_UPLOADED_SESSION_ATTR);
if(listFileUploaded!=null) {
LOG.info("found file uploded in session, removing it");
@ -41,6 +41,6 @@ public class UploadedFileHttpSessionListener implements HttpSessionListener {
@Override
public void sessionCreated(HttpSessionEvent arg0) {
LOG.info("sessionCreated called. Session id is: "+arg0.getSession().getId());
LOG.trace("sessionCreated called. Session id is: "+arg0.getSession().getId());
}
}