-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: change level of TCP events #3285
Conversation
Signed-off-by: Kirill Fomichev <fanatid@ya.ru>
Signed-off-by: Kirill Fomichev <fanatid@ya.ru>
I'm not sure about message correctness, is this ok: |
debug!(message = "sending event.", byte_size = %self.byte_size); | ||
trace!(message = "sending event.", byte_size = %self.byte_size); |
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 the other "sending" messages but one (src/sinks/util/sink.rs
) use debug!
, so this would be a convention change. I agree trace seems more reasonable, but we should plan to change all of them.
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.
So, should we change all "sending" debug!
to trace!
in one PR?
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.
If the single concern is this to lower the level of these logs, then one PR should be fine.
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.
I think there were two concerns—one typo vs the debug messages that should be—and so the question was to bundle them together.
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.
Got it. Given these are simple, I think it's ok to bundle them.
debug!(message = "sending event.", byte_size = %self.byte_size); | ||
trace!(message = "received event.", byte_size = %self.byte_size); |
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.
…and yet, most of the "received" messages are traces. This obviously should go in for the typo at least.
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.
Thanks for changing this. I agree that this should be TRACE
level. Anything above trace should be rate limited in the hot path.
* fix log message for TcpEventReceived Signed-off-by: Kirill Fomichev <fanatid@ya.ru> * change level for tcp events Signed-off-by: Kirill Fomichev <fanatid@ya.ru> Signed-off-by: Brian Menges <brian.menges@anaplan.com>
Noticed this while worked on #3188