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

fix: revert "chore: adding observers for message logging (#2800)" #2815

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

gabrielmer
Copy link
Contributor

This reverts commit b522865.

Description

The approach of using observers for logging seems to be extremely inefficient, as observers are triggered before checking whether we have received a message or not. This implies that they get triggered for repeated messages.

On the other hand, increasing the metrics in the observer is a bug, as repeated messages would be counted.

We will need then to create special versions with extra logs for simulations in a branch separate from master.

Thanks @Ivansete-status for raising the issue!

CC @AlbertoSoutullo

Changes

  • reverting logger observers commit

Copy link

github-actions bot commented Jun 17, 2024

You can find the image built from this PR at

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

Built from 989d687

Copy link

github-actions bot commented Jun 17, 2024

You can find the image built from this PR at

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

Built from 989d687

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 for it! 💯

@gabrielmer gabrielmer changed the title Revert "chore: adding observers for message logging (#2800)" fix: Revert "chore: adding observers for message logging (#2800)" Jun 17, 2024
@gabrielmer gabrielmer changed the title fix: Revert "chore: adding observers for message logging (#2800)" fix: revert "chore: adding observers for message logging (#2800)" Jun 17, 2024
Copy link
Contributor

@NagyZoltanPeter NagyZoltanPeter left a comment

Choose a reason for hiding this comment

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

Sorry to hear it did not worked out. LGTM btw.

waku/node/waku_node.nim Show resolved Hide resolved
@gabrielmer gabrielmer merged commit 93e9ba2 into master Jun 17, 2024
12 of 15 checks passed
@gabrielmer gabrielmer deleted the revert-observers-for-logging branch June 17, 2024 11:14
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