Skip to content

Commit

Permalink
log targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Jan 9, 2025
1 parent 81a468d commit 1f1d314
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use tracing::debug;

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::erc20_legacy_transfer";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::erc20_legacy_transfer";

#[derive(Default, Debug)]
pub struct Erc20LegacyTransferProcessor;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/indexer/src/processors/erc20_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use tracing::debug;

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::erc20_transfer";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::erc20_transfer";

#[derive(Default, Debug)]
pub struct Erc20TransferProcessor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use tracing::debug;

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::erc721_legacy_transfer";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::erc721_legacy_transfer";

#[derive(Default, Debug)]
pub struct Erc721LegacyTransferProcessor;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/indexer/src/processors/erc721_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use tracing::debug;

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::erc721_transfer";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::erc721_transfer";

#[derive(Default, Debug)]
pub struct Erc721TransferProcessor;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/indexer/src/processors/event_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use tracing::info;

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::event_message";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::event_message";

#[derive(Default, Debug)]
pub struct EventMessageProcessor;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/indexer/src/processors/metadata_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use tracing::{error, info};

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::metadata_update";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::metadata_update";

#[derive(Default, Debug)]
pub struct MetadataUpdateProcessor;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/indexer/src/processors/register_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use tracing::{debug, info};

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::register_event";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::register_event";

#[derive(Default, Debug)]
pub struct RegisterEventProcessor;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/indexer/src/processors/register_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use tracing::{debug, info};

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::register_model";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::register_model";

#[derive(Default, Debug)]
pub struct RegisterModelProcessor;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/indexer/src/processors/store_del_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use tracing::{debug, info};

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::store_del_record";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::store_del_record";

#[derive(Default, Debug)]
pub struct StoreDelRecordProcessor;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/indexer/src/processors/store_set_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use tracing::{debug, info};

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::store_set_record";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::store_set_record";

#[derive(Default, Debug)]
pub struct StoreSetRecordProcessor;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/indexer/src/processors/store_update_member.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use tracing::info;

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::store_update_member";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::store_update_member";

#[derive(Default, Debug)]
pub struct StoreUpdateMemberProcessor;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/indexer/src/processors/store_update_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use tracing::{debug, info};

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::store_update_record";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::store_update_record";

#[derive(Default, Debug)]
pub struct StoreUpdateRecordProcessor;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/indexer/src/processors/upgrade_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use tracing::{debug, info};

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::upgrade_event";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::upgrade_event";

#[derive(Default, Debug)]
pub struct UpgradeEventProcessor;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/indexer/src/processors/upgrade_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use tracing::{debug, info};

use super::{EventProcessor, EventProcessorConfig};

pub(crate) const LOG_TARGET: &str = "torii_core::processors::upgrade_model";
pub(crate) const LOG_TARGET: &str = "torii_indexer::processors::upgrade_model";

#[derive(Default, Debug)]
pub struct UpgradeModelProcessor;
Expand Down
8 changes: 4 additions & 4 deletions crates/torii/libp2p/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ async fn test_client_messaging() -> Result<(), Box<dyn Error>> {
use tokio::select;
use tokio::sync::broadcast;
use tokio::time::sleep;
use torii_core::executor::Executor;
use torii_core::sql::cache::ModelCache;
use torii_core::sql::Sql;
use torii_core::types::{Contract, ContractType};
use torii_sqlite::executor::Executor;
use torii_sqlite::cache::ModelCache;
use torii_sqlite::Sql;
use torii_sqlite::types::{Contract, ContractType};
use torii_typed_data::typed_data::{Domain, Field, SimpleField, TypedData};

use crate::server::Relay;
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/sqlite/src/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use crate::utils::{felt_to_sql_string, I256};
pub mod erc;
pub use erc::{RegisterErc20TokenQuery, RegisterErc721TokenMetadata, RegisterErc721TokenQuery};

pub(crate) const LOG_TARGET: &str = "torii_core::executor";
pub(crate) const LOG_TARGET: &str = "torii_sqlite::executor";

#[derive(Debug, Clone)]
pub enum Argument {
Expand Down

0 comments on commit 1f1d314

Please sign in to comment.