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

chore: better descriptive log #2826

Merged
merged 4 commits into from
Jun 20, 2024
Merged

chore: better descriptive log #2826

merged 4 commits into from
Jun 20, 2024

Conversation

darshankabariya
Copy link
Contributor

Previously, there was confusion in distinguishing between the content and the pubsub topic in logs. Now, the logs are more descriptive, clearly specifying which content-topic pair has the issue.

Copy link

github-actions bot commented Jun 20, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2826-rln-v1

Built from 4ee6e50

Copy link

github-actions bot commented Jun 20, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2826-rln-v2

Built from 4ee6e50

@darshankabariya darshankabariya changed the title chore : better descriptive log chore: better descriptive log Jun 20, 2024
Copy link

github-actions bot commented Jun 20, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2826

Built from 30c0819

Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks! 💯
Just added a minor comment

@@ -148,6 +148,8 @@ proc setupProtocols(
conf.contentTopics.mapIt(node.wakuSharding.getShard(it).expect("Valid Shard"))
let pubsubTopics = conf.pubsubTopics & shards

debug "Shards created for content filter", shards = shards
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggestion to give a bit more detail when we have contentTopics as a parameter

Suggested change
debug "Shards created for content filter", shards = shards
if conf.contentTopics.len > 0:
debug "Shards created from content topics", contentTopics = conf.contentTopics, shards = shards

Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@darshankabariya darshankabariya merged commit 94947a8 into master Jun 20, 2024
9 of 10 checks passed
@darshankabariya darshankabariya deleted the debug_issue branch June 20, 2024 13:08
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