Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3840

correct JakartaMultiPartRequest LOG and change cleanUp log level to DEBUG

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.7
    • None
    • None

    Description

      static final Logger LOG = LoggerFactory.getLogger(MultiPartRequest.class);
      should be
      static final Logger LOG = LoggerFactory.getLogger(JakartaMultiPartRequest.class);

      like
      protected static final Logger LOG = LoggerFactory.getLogger(MultiPartRequestWrapper.class);
      in MultiPartRequestWrapper.java

      in JakartaMultiPartRequest.cleanUp(),info level log is annoying,please change to debug

      if (LOG.isDebugEnabled()) {
      String msg = LocalizedTextUtil.findText(this.getClass(), "struts.messages.removing.file",
      Locale.ENGLISH, "no.message.found", new Object[]

      {name, item}

      );
      LOG.debug(msg);
      }

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            quaff Yanming Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: