Skip to content

Commit

Permalink
Revert "add logging and change the metric name (metaplex-foundation#77)…
Browse files Browse the repository at this point in the history
…" (metaplex-foundation#78)

This reverts commit bb0a5a0.
  • Loading branch information
Nikhil Acharya authored Jul 5, 2023
1 parent bb0a5a0 commit 73642eb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions nft_ingester/src/program_transformers/token/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 73642eb

Please sign in to comment.