Browse Source
Report warning instead of error in setup actors
resilient-broadcast
Lucas Soriano del Pino
3 years ago
No known key found for this signature in database
GPG Key ID: 89CE0DB40A19D524
2 changed files with
3 additions and
3 deletions
-
daemon/src/setup_maker.rs
-
daemon/src/setup_taker.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; |
|
|
|
|
|
@ -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() |
|
|
|
} |
|
|
|
} |
|
|
|