-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: logger implementation for event feeder like cosmos icon eth substrate #130
feat: logger implementation for event feeder like cosmos icon eth substrate #130
Conversation
event_feed/src/cosmos/feeder.rs
Outdated
let events = chain_config | ||
.event_filter | ||
.split(',') | ||
.map(|e| e.to_string()) | ||
.filter(|e| !e.is_empty()) | ||
.collect::<Vec<String>>(); | ||
// let logger = CoreLogger::new(Some("./event-feed.log")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code clean up
…ion-for-Event-Feeder-like-Cosmos-icon-eth-substrate
…ion-for-Event-Feeder-like-Cosmos-icon-eth-substrate
…ion-for-Event-Feeder-like-Cosmos-icon-eth-substrate
event_feed/src/eth/feeder.rs
Outdated
@@ -83,6 +90,10 @@ impl EthFeed { | |||
let tx_receipt = client.get_transaction_receipt(tx_hash).await; | |||
|
|||
if let Ok(Some(tx_receipt)) = tx_receipt { | |||
self.logger.info(&format!( | |||
"Received trabsaction receipt for the tx_hash : {:?}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typographical error "transaction"
@@ -28,7 +32,10 @@ async fn test_filter_events_argument_with_no_method() { | |||
event_filter: "balances=Transfer;system".to_string(), | |||
contract_filter: "".to_string(), | |||
}; | |||
let polkadot = PolkadotFeed::<PolkadotConfig>::new(config).await.unwrap(); | |||
let logger = CoreLogger::new(Some("./event-feed.log")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clear the created files after test
Pull Request Template
Description
Logger implementation for the event feed
Please select the options that are relevant.
Checklist: