Skip to content

Commit

Permalink
feat(fortuna_staging): use spans to create a hierarchy of logs (#1540)
Browse files Browse the repository at this point in the history
* use spans to create a hierarchy of logs

* minor imp

* remove chain id

* add a sequence processing

* added comments

* consistent with other threads

* extract method out

* add field to process block range

* add field to watch events logs

* rename method

* extract process batch method

* tidy

* update log for eth

* remove comment

* update version

* address feedback
  • Loading branch information
Dev Kalra authored May 3, 2024
1 parent 586a439 commit 10dc4a0
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 141 deletions.
4 changes: 2 additions & 2 deletions apps/fortuna/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/fortuna/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fortuna"
version = "5.1.1"
version = "5.2.1"
edition = "2021"

[dependencies]
Expand Down
6 changes: 5 additions & 1 deletion apps/fortuna/src/chain/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ impl EntropyReader for PythContract {
Err(e) => match e {
ContractError::ProviderError { e } => Err(anyhow!(e)),
_ => {
tracing::info!("Gas estimation for reveal with callback failed: {:?}", e);
tracing::info!(
sequence_number = sequence_number,
"Gas estimation failed. error: {:?}",
e
);
Ok(None)
}
},
Expand Down
Loading

0 comments on commit 10dc4a0

Please sign in to comment.