How to disable queue branch detection info messages

Still need help?

The Atlassian Community is here for you.

Ask the community

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

  1. Stop the Bamboo server instance
  2. Edit the <Bamboo_Install>/atlassian-bamboo/WEB-INF/classes/log4j.properties
  3. Add the following line into it:

    log4j.category.com.atlassian.bamboo.plan.ItemDetections=ERROR
  4. Start the Bamboo instance 

For Bamboo version 9 and above

  1. Stop the Bamboo server instance
  2. Edit the <Bamboo_Install>/atlassian-bamboo/WEB-INF/classes/log4j2.properties
  3. 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

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.