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

drop packets even if we aren't going to emit Debug logs about it #239

Merged
merged 2 commits into from Jun 10, 2020

Conversation

pdbogen
Copy link
Contributor

@pdbogen pdbogen commented Jun 10, 2020

The patch introduced a few weeks ago to log reasons for firewall drops inadvertently optimized away the actual packet drop in cases where Debug logs were not enabled.

This separates those two concerns so that packets are dropped regardless of log level.

@CLAassistant
Copy link

CLAassistant commented Jun 10, 2020

CLA assistant check
All committers have signed the CLA.

@pdbogen
Copy link
Contributor Author

pdbogen commented Jun 10, 2020

To be on the safe side, I also grepped the code base for any if statements that involve l.Level, and configured visually that none of the associated bodies do anything other than emit log entries.

@nbrownus nbrownus merged commit ecf0e5a into slackhq:master Jun 10, 2020
@wadey wadey added this to the v1.3.0 milestone Aug 3, 2020
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.

None yet

4 participants