From 73642ebc40154c054921358871e2c1a3f9563982 Mon Sep 17 00:00:00 2001 From: Nikhil Acharya <128666399+nikhil-helius@users.noreply.github.com> Date: Wed, 5 Jul 2023 12:56:51 +0530 Subject: [PATCH] Revert "add logging and change the metric name (#77)" (#78) This reverts commit bb0a5a02ea8449d861ce61b44303641c57b9c275. --- nft_ingester/src/program_transformers/token/mod.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nft_ingester/src/program_transformers/token/mod.rs b/nft_ingester/src/program_transformers/token/mod.rs index b965da7f4..9fd11abe4 100644 --- a/nft_ingester/src/program_transformers/token/mod.rs +++ b/nft_ingester/src/program_transformers/token/mod.rs @@ -2,7 +2,7 @@ use crate::{error::IngesterError, tasks::TaskData}; use blockbuster::programs::token_account::TokenProgramAccount; use cadence_macros::statsd_count; use digital_asset_types::dao::{asset, asset_data, token_accounts, tokens}; -use log::warn; +use log::error; use plerkle_serialization::AccountInfo; use sea_orm::{ entity::*, query::*, sea_query::OnConflict, ActiveValue::Set, ConnectionTrait, @@ -87,11 +87,9 @@ pub async fn handle_token_program_account<'a, 'b, 'c>( if let Some(data) = data { if data.metadata_url.is_empty() { - statsd_count!("ingester.token_account.empty_url", 1); - warn!("url is absent") + statsd_count!("token_account.empty_url", 1); } else { - statsd_count!("ingester.token_account.non_empty_url", 1); - warn!("url is present") + statsd_count!("token_account.non_empty_url", 1); } } }