Skip to content

Improve logging and reliability #45

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

Merged
merged 5 commits into from
Feb 21, 2023
Merged

Improve logging and reliability #45

merged 5 commits into from
Feb 21, 2023

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.

🙇

@@ -32,7 +32,7 @@ async fn main() {
let logger = slog::Logger::root(
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.

2 participants