From 46501539e2e3cc377a2dc46a8cfed02f24790bcc Mon Sep 17 00:00:00 2001 From: SW van Heerden Date: Thu, 8 Dec 2022 12:17:44 +0200 Subject: [PATCH] feat: improve logging of dropped channel (#5013) Description --- Improve the logging message of a dropped reply channel. Motivation and Context --- Fixes: https://github.com/tari-project/tari/issues/4941 The error can only happen when the grcp channel is dropped. The message should reflect this more accuractly How Has This Been Tested? --- --- base_layer/core/src/base_node/service/service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_layer/core/src/base_node/service/service.rs b/base_layer/core/src/base_node/service/service.rs index 7940cdf969..0f2e52cdcd 100644 --- a/base_layer/core/src/base_node/service/service.rs +++ b/base_layer/core/src/base_node/service/service.rs @@ -346,7 +346,7 @@ where B: BlockchainBackend + 'static if let Err(res) = result { error!( target: LOG_TARGET, - "BaseNodeService failed to send reply to local block submitter {:?}", + "BaseNodeService Caller dropped the oneshot receiver before reply could be sent. Reply: {:?}" res.map(|r| r.to_string()).map_err(|e| e.to_string()) ); }