Skip to content

Conversation

@ali-behjati
Copy link
Collaborator

@ali-behjati ali-behjati commented Feb 17, 2023

  • Add a key to differenciate primary vs secondary network logging
  • Set timeout for the network. I would add a RPC struct if I could break backward compatibility to move rpc urls and timeout and commitment there. I think this is fine now but it's good to consider it if we add new rpc specific config.

Update: By default there is a timeout of 30 seconds everywhere but I think it's still good to have it explicit.

@ali-behjati ali-behjati requested a review from tompntn February 17, 2023 10:25
Suggested by dependabot
Copy link
Contributor

@tompntn tompntn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙇

slog_async::Async::default(
LogBuilder::new(
slog_term::CompactFormat::new(slog_term::TermDecorator::new().stdout().build())
slog_term::FullFormat::new(slog_term::TermDecorator::new().stdout().build())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious - why the change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why it was not showing the key/value passed to it via the parent logger.

@ali-behjati ali-behjati merged commit 866a293 into main Feb 21, 2023
@ali-behjati ali-behjati deleted the improve-agent branch February 21, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants