Unverified Commit e6ed17b9 authored by Alexandru Vasile's avatar Alexandru Vasile
Browse files

Log warning when subscription callback fails


Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>
parent 61b1e0e2
......@@ -750,7 +750,9 @@ impl<Context: Send + Sync + 'static> RpcModule<Context> {
}));
// The callback returns an empty `SubscriptionError` for improved API ergonomics.
let _ = callback(params, sink, ctx.clone());
if let Err(err) = callback(params, sink, ctx.clone()) {
tracing::warn!("subscribe call `{}` failed with err={:?}", subscribe_method_name, err);
}
true
})),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment