From 5aeaa6646cc0ead984cc0b12dd9ea5a8fca56687 Mon Sep 17 00:00:00 2001
From: Andrei Eres <eresav@me.com>
Date: Wed, 13 Nov 2024 10:18:38 +0100
Subject: [PATCH] Remove debug message about pruning active leaves (#6440)

# Description

The debug message was added to identify a potential memory leak.
However, recent observations show that pruning works as expected.
Therefore, it is best to remove this line, as it generates quite
annoying logs.


## Integration

Doesn't affect downstream projects.

---------

Co-authored-by: GitHub Action <action@github.com>
---
 polkadot/node/core/pvf/src/execute/queue.rs | 2 --
 prdoc/pr_6440.prdoc                         | 8 ++++++++
 2 files changed, 8 insertions(+), 2 deletions(-)
 create mode 100644 prdoc/pr_6440.prdoc

diff --git a/polkadot/node/core/pvf/src/execute/queue.rs b/polkadot/node/core/pvf/src/execute/queue.rs
index 6d27ab0261d..69355b8fd55 100644
--- a/polkadot/node/core/pvf/src/execute/queue.rs
+++ b/polkadot/node/core/pvf/src/execute/queue.rs
@@ -305,8 +305,6 @@ impl Queue {
 		for hash in &update.deactivated {
 			let _ = self.active_leaves.remove(&hash);
 		}
-
-		gum::debug!(target: LOG_TARGET, size = ?self.active_leaves.len(), "Active leaves pruned");
 	}
 
 	fn insert_active_leaf(&mut self, update: ActiveLeavesUpdate, ancestors: Vec<Hash>) {
diff --git a/prdoc/pr_6440.prdoc b/prdoc/pr_6440.prdoc
new file mode 100644
index 00000000000..376e59fa752
--- /dev/null
+++ b/prdoc/pr_6440.prdoc
@@ -0,0 +1,8 @@
+title: Remove debug message about pruning active leaves
+doc:
+- audience: Node Dev
+  description: |-
+    Removed useless debug message
+crates:
+- name: polkadot-node-core-pvf
+  validate: false
-- 
GitLab