Skip to content
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

ibc: improve logging #2464

Merged
merged 2 commits into from
May 3, 2023
Merged

ibc: improve logging #2464

merged 2 commits into from
May 3, 2023

Conversation

avahowell
Copy link
Contributor

differentiate between client type and client state lookups

@@ -265,14 +265,14 @@ pub trait StateReadExt: StateRead {
async fn get_client_type(&self, client_id: &ClientId) -> Result<ClientType> {
self.get_proto(&state_key::client_type(client_id))
.await?
.ok_or_else(|| anyhow::anyhow!("client not found"))
.context("could not find client type")
Copy link
Contributor

Choose a reason for hiding this comment

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

What about "could not find client type for {client_id}"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea, done

@avahowell avahowell temporarily deployed to smoke-test May 3, 2023 21:49 — with GitHub Actions Inactive
@conorsch conorsch merged commit d94a37d into main May 3, 2023
@conorsch conorsch deleted the ibc-logging branch May 3, 2023 22:01
conorsch added a commit that referenced this pull request May 3, 2023
Follow up to #2464, where we forgot the format macro. What we really
want is more spans, as with the connection_open logic, but we'll get to
that shortly.
conorsch added a commit that referenced this pull request May 3, 2023
Follow up to #2464, where we forgot the format macro. What we really
want is more spans, as with the connection_open logic, but we'll get to
that shortly.
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