We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent deae922 commit 7a67cf7Copy full SHA for 7a67cf7
plugins/src/lib.rs
@@ -813,7 +813,11 @@ where
813
match &self.wildcard_subscription {
814
Some(cb) => {
815
let call = cb(plugin.clone(), params.clone());
816
- tokio::spawn(async move { call.await.unwrap() });
+ tokio::spawn(async move {
817
+ if let Err(e) = call.await {
818
+ log::warn!("Wildcard notification handler error: '{}'", e)
819
+ }
820
+ });
821
}
822
None => {}
823
};
@@ -823,7 +827,11 @@ where
827
match self.subscriptions.get(method) {
824
828
825
829
826
830
831
832
+ log::warn!("Notification handler error: '{}'", e)
833
834
835
836
None => {
837
if self.wildcard_subscription.is_none() {
0 commit comments