-
Notifications
You must be signed in to change notification settings - Fork 54
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: set msg_hash logs to notice level #2737
Conversation
You can find the image built from this PR at
Built from f2ccdcc |
You can find the image built from this PR at
Built from f2ccdcc |
fe767a4
to
0e3f05a
Compare
60a5882
to
a851cc9
Compare
Thank you @Ivansete-status, it is great. a template, maybe into digest.nim
That can be used all around easily, like:
or
WDYT would it apply? |
wow! Thanks! I will consider that once the ci pass xD |
This is needed to help the Distributed Systems Testing team, DST, to have less logs when analysing thousands of nodes. With that, the DST team will set the log level to INFO and that will avoid printing too many logs.
a851cc9
to
6ce6eb2
Compare
We changed the approach and now we will simply use @NagyZoltanPeter do you think creating a template is still relevant with this new approach? I feel that now it's simple enough, but lmk what you think :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM your recent changes @gabrielmer !
Much simpler, thanks ;P!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM your recent changes @gabrielmer ! Much simpler, thanks ;P!
approving for @Ivansete-status 😁
@gabrielmer, @Ivansete-status , cc: @DarshanBPatel +There are some consideration. As we know (I hope sometime we get there to fix it) if a function call appears in log argument list, that will be called twice. So there is a performance issue with it, although if that is not in scope for msg hash logging we can think of it as acceptable and add all computeMessageHash call right into the log call and not outside, that way if log level is higher it will be never called, just like with the compile option. I think template can help that it is a single place of responsibility and not spread, which is overall a better design I think.
How do you see this applicable? I dont think such an extension to WakuMessage would ruin anything. |
Thank you so much for the comments @NagyZoltanPeter ! On the other hand, notice that Let me answer your questions more precisely :)
Using
Yes, showing
Yes, we need to keep these intense logs at least until we fully enhance the reliability Cheers |
@Ivansete-status : Thank you, I appreciate all the explanation. Most of my quotes were only question due to missed track of this flow. Just another question, non-blocking at all! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All discussed and all good, thank you!!!
Description
This is needed to help the Distributed Systems Testing team, DST, to have less logs when analysing thousands of nodes. With that, the DST team will set the log level to NOTICE and that will avoid printing too many logs.
Changes
notice
when loggingmsg_hash
.waku/waku_relay/protocol.nim
Issue
closes #2678