-
Bug
-
Resolution: Fixed
-
Low
-
7.2.11, 7.2.12, 7.4.0, 7.6.2, 7.6.6, 7.8.0
-
7.02
-
4
-
Severity 3 - Minor
-
2
-
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
- Create Gmail IMAP mail server
- Create Core/Software mail handler
- 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