From e40d4835f454c9b5d6b5d726a4c4f1858ee5f1a3 Mon Sep 17 00:00:00 2001 From: sokach-dev Date: Thu, 12 Dec 2024 11:01:01 +0800 Subject: [PATCH] add more log --- angel/src/web.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/angel/src/web.rs b/angel/src/web.rs index 76853a3..ba83a28 100644 --- a/angel/src/web.rs +++ b/angel/src/web.rs @@ -143,14 +143,18 @@ async fn check_token_largest_accounts(Query(query): Query) -> impl I match get_token_largest_accounts(&query.token, &c.get_random_solana_rpc_url()).await { Ok(accounts) => { for account in accounts { + debug!( + "check_token_largest_accounts: token: {}, amount: {}", + query.token, account.amount.ui_amount_string + ); match account.amount.ui_amount_string.parse::() { Ok(amount) => { if amount > check_amount { - debug!( - "check_token_largest_accounts: token: {}, amount: {}", - query.token, amount - ); count += 1; + info!( + "check_token_largest_accounts: token: {}, amount: {}, count: {}", + query.token, amount, count + ); } } Err(e) => {