How to disable queue branch detection info messages
Purpose
Recent versions of Bamboo added an info log message to constantly report the state of the branch detection queue. Messages like:
2018-09-04 17:14:39,165 INFO [scheduler_Worker-1] [ItemDetections] Queued branch detections: 1116, detections in progress: 3 plan PROJ-PLAN1 queued for detection: true
2018-09-04 17:14:39,165 INFO [scheduler_Worker-1] [ItemDetections] Queued branch detections: 1117, detections in progress: 3 plan PROJ-PLAN2 queued for detection: true
2018-09-04 17:14:39,165 INFO [scheduler_Worker-1] [ItemDetections] Queued branch detections: 1118, detections in progress: 3 plan PROJ-PLAN3 queued for detection: true
Depending on the number of plans being detected and the interval configured these messages might flood the server logs.
This article explains how these messages can be disabled.
Solution
For Bamboo versions prior 9
- Stop the Bamboo server instance
- Edit the <Bamboo_Install>/atlassian-bamboo/WEB-INF/classes/log4j.properties
Add the following line into it:
log4j.category.com.atlassian.bamboo.plan.ItemDetections=ERROR
- Start the Bamboo instance
For Bamboo version 9 and above
- Stop the Bamboo server instance
- Edit the <Bamboo_Install>/atlassian-bamboo/WEB-INF/classes/log4j2.properties
Add the following line into it:
logger.bamboo-item.level=ERROR logger.bamboo-item.name=com.atlassian.bamboo.plan.ItemDetections
Last modified on Aug 18, 2022
Powered by Confluence and Scroll Viewport.