Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-67141

mailfetcherservice log message filling up catalina.out

XMLWordPrintable

      Summary

      When adding a Gmail IMAP mail server and incoming mail handler, the following message is logged in my catalina.out multiple times a second:

      2018-04-13 10:54:42,089 Caesium-1-2 INFO anonymous    gmail-hand [c.a.mail.incoming.mailfetcherservice] Calling handleMessage

      Environment

      • I can reproduce this on-demand in my local 7.6.2 instance
      • Colleague can reproduce in 7.4.x
      • Customers are seeing this in 7.6.1 and 7.8.0(GHS-112421)

      Steps to Reproduce

      1. Create Gmail IMAP mail server
      2. Create Core/Software mail handler
      3. Tail the catalina.out

      Expected Results

      No diagnostic logging

      Actual Results

      The below INFO logging is added to the catalina.out file:

      2018-04-13 10:54:42,089 Caesium-1-2 INFO anonymous    gmail-hand [c.a.mail.incoming.mailfetcherservice] Calling handleMessage
      

      Notes

      • Jira logs messages at INFO level, while it should at DEBUG for each invocation of processMessage method, which is for each message.

      Workaround

      • Since logging will be added for each message, deleting unnecessary emails ('Mail Delivery failure', Out of Office replies, etc ) will reduce amount of logging.
      • Modify the $JIRA_HOME/atlassian-jira/WEB-INF/classes/log4j.properties file to set the com.atlassian.mail.incoming.mailfetcherservice class to only log at WARN level.
        # ADD THIS NEW LOGGER TO STOP LOG SPAM
        log4j.logger.com.atlassian.mail.incoming.mailfetcherservice = WARN, incomingmaillog
        

              ialexeyenko Ignat (Inactive)
              asweeten ASweeten
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: