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

Observer to ignore unhandled debug event types #14589

Merged
merged 1 commit into from
Jan 14, 2021

Conversation

anfernee
Copy link
Contributor

When running cilium-agent in debug mode, the cilium-agent will throw
tons of logs which looks like this:

level=debug msg="failed to decode payload" error="can't decode following payload type: 2"

Type 2 means MessageTypeDebug. Similarly Type 3 MessageTypeCapture also
has similar issue. They are only for debug, so ignore the them from local observer.

@anfernee anfernee requested a review from a team January 12, 2021 07:23
@maintainer-s-little-helper
Copy link

Commit 24573e70a94d0aed647a6bf06b45e6b0961ed985 does not contain "Signed-off-by".

Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin

@maintainer-s-little-helper maintainer-s-little-helper bot added dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Jan 12, 2021
@anfernee anfernee requested a review from glibsm January 12, 2021 07:23
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Support for both in the observer should land soon, but I agree that we should not spam the debug messages with this.

Edit: Please don't forget to sign-off your commit.

@gandro gandro added release-note/misc This PR makes changes that have no direct user impact. sig/hubble Impacts hubble server or relay labels Jan 12, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jan 12, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. label Jan 12, 2021
Copy link
Member

@glibsm glibsm left a comment

Choose a reason for hiding this comment

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

Instead of && condition on an if, it would be better to call out a separate inner if with just that condition and explicit continue with a comment explaining why it's silenced.

When running cilium-agent in debug mode, the cilium-agent will throw
tons of logs which looks like this:
```
level=debug msg="failed to decode payload" error="can't decode following payload type: 2"
```

Type 2 means MessageTypeDebug. Similarly Type 3 MessageTypeCapture also
has similar issue. They are only for debug, so ignore the them from local observer.

Signed-off-by: Yongkun Gui <[email protected]>
@anfernee
Copy link
Contributor Author

updated. actually, I don't quite understand the difference between unknown event type and invalid event type. They look the same to me..

@gandro
Copy link
Member

gandro commented Jan 13, 2021

test-me-please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact. sig/hubble Impacts hubble server or relay
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants