From 32a3720e08154f225c0dcd761dfc4da8c212aab8 Mon Sep 17 00:00:00 2001 From: dzmitry-lahoda Date: Sat, 20 Apr 2024 02:18:29 +0100 Subject: [PATCH] issues --- mantis/node/src/bin/mantis.rs | 6 ++++-- mantis/node/src/mantis/autopilot.rs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mantis/node/src/bin/mantis.rs b/mantis/node/src/bin/mantis.rs index 4f1f453..a468b86 100644 --- a/mantis/node/src/bin/mantis.rs +++ b/mantis/node/src/bin/mantis.rs @@ -85,8 +85,10 @@ async fn solve_orders(solver_args: &SolverArgs) { &tip, ) .await; - if stale_orders.len() > 0 { - log::warn!(target: "mantis::autopilot", "timedouted orders"); + if stale_orders.len() > 0 || rand::random::() > 200 { + if stale_orders.len() > 0 { + log::warn!(target: "mantis::autopilot", "timedouted orders"); + } autopilot::cleanup( &mut write_client, &mut cosmos_query_client, diff --git a/mantis/node/src/mantis/autopilot.rs b/mantis/node/src/mantis/autopilot.rs index b528177..e6bca89 100644 --- a/mantis/node/src/mantis/autopilot.rs +++ b/mantis/node/src/mantis/autopilot.rs @@ -19,7 +19,7 @@ pub async fn cleanup( tip: &Tip, gas: Gas, ) { - log::info!(target: "mantis::autopilot", " cleanup of old orders"); + log::debug!(target: "mantis::autopilot", " cleanup of old orders"); let auth_info = simulate_and_set_fee(signing_key, &tip.account, gas).await; let msg = cw_mantis_order::ExecMsg::Timeout { orders: vec![],