Browse Source

Report warning instead of error in setup actors

resilient-broadcast
Lucas Soriano del Pino 3 years ago
parent
commit
66e69b8bcc
No known key found for this signature in database GPG Key ID: 89CE0DB40A19D524
  1. 2
      daemon/src/setup_maker.rs
  2. 4
      daemon/src/setup_taker.rs

2
daemon/src/setup_maker.rs

@ -150,7 +150,7 @@ impl Actor {
};
if let Err(error) = fut.await {
tracing::error!(%order_id, "Stopping setup_maker actor: {}", error);
tracing::warn!(%order_id, "Stopping setup_maker actor: {}", error);
self.complete(Completed::Failed { order_id, error }, ctx)
.await;

4
daemon/src/setup_taker.rs

@ -117,7 +117,7 @@ impl Actor {
tracing::info!(%order_id, "Order got rejected");
if msg.is_invalid_order {
tracing::error!(%order_id, "Rejection reason: Invalid order ID");
tracing::warn!(%order_id, "Rejection reason: Invalid order ID");
}
self.on_completed
@ -182,7 +182,7 @@ impl xtra::Actor for Actor {
.await;
if let Err(e) = res {
tracing::error!(%self.order.id, "Stopping setup_taker actor: {}", e);
tracing::warn!(%self.order.id, "Stopping setup_taker actor: {}", e);
ctx.stop()
}
}

Loading…
Cancel
Save