From aa1faefe339ed3bd4a610b1308d674746735eb0f Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Wed, 27 Sep 2023 21:00:07 -0400 Subject: [PATCH] Correct Message Queue log statements now that queues are per from-to pairs --- message-queue/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/message-queue/src/main.rs b/message-queue/src/main.rs index e7707ed89..f2ae69c4b 100644 --- a/message-queue/src/main.rs +++ b/message-queue/src/main.rs @@ -105,7 +105,7 @@ mod binaries { }, ); - log::info!("Queued message from {:?}. It is {:?} {id}", meta.from, meta.to); + log::info!("Queued message. From: {:?} To: {:?} ID: {id}", meta.from, meta.to); DbTxn::commit(txn); } @@ -142,7 +142,7 @@ mod binaries { // It's the second if we acknowledge messages before saving them as acknowledged // TODO: Check only a proper message is being acked - log::info!("{:?} is acknowledging {:?} {}", from, to, id); + log::info!("Acknowledging From: {:?} To: {:?} ID: {}", from, to, id); (*QUEUES).read().unwrap()[&(from, to)].write().unwrap().ack_message(id) }