From cf3c998dceb4ceb3fd09ef938d989425205f041b Mon Sep 17 00:00:00 2001 From: Amar Singh Date: Fri, 12 Jul 2024 04:26:11 -0400 Subject: [PATCH] Do not emit running write phase log if execute write is not called (#1005) --- chronicle/src/tasks/executor.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/chronicle/src/tasks/executor.rs b/chronicle/src/tasks/executor.rs index 4c2d9deac..af1abff65 100644 --- a/chronicle/src/tasks/executor.rs +++ b/chronicle/src/tasks/executor.rs @@ -211,14 +211,6 @@ where continue; } - event!( - target: TW_LOG, - parent: &span, - Level::INFO, - task_id, - "Running write phase", - ); - let function = match function { Function::RegisterShard { shard_id } => { if let Some(gmp_params) = gmp_params { @@ -279,6 +271,13 @@ where }, _ => function, }; + event!( + target: TW_LOG, + parent: &span, + Level::INFO, + task_id, + "Running write phase", + ); self.task_spawner.execute_write(task_id, function) }, TaskPhase::Read => {