Skip to content

Commit

Permalink
feat: improve logging of dropped channel (#5013)
Browse files Browse the repository at this point in the history
Description
---
Improve the logging message of a dropped reply channel.

Motivation and Context
---
Fixes: #4941
The error can only happen when the grcp channel is dropped. The message should reflect this more accuractly 

How Has This Been Tested?
---
  • Loading branch information
SWvheerden authored Dec 8, 2022
1 parent 0c9477b commit 4650153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_layer/core/src/base_node/service/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
);
}
Expand Down

0 comments on commit 4650153

Please sign in to comment.