From a13013f48f45fb54b3521cacd7b2f055b608a66a Mon Sep 17 00:00:00 2001 From: Milos Stankovic <82043364+morph-dev@users.noreply.github.com> Date: Sat, 14 Sep 2024 19:01:23 +0300 Subject: [PATCH] feat: log message when stop_signal is received --- trin-execution/src/execution.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trin-execution/src/execution.rs b/trin-execution/src/execution.rs index 58af99c0a..770f858e8 100644 --- a/trin-execution/src/execution.rs +++ b/trin-execution/src/execution.rs @@ -101,6 +101,9 @@ impl TrinExecution { .as_mut() .is_some_and(|stop_signal| stop_signal.try_recv().is_ok()); if block.header.number == last_block || stop_signal_received { + if stop_signal_received { + info!("Stop signal received. Committing now, please wait!"); + } return self.commit(&block.header, block_executor).await; }