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

support capture zk packet from loopback device and ignore null packet #69

Merged
merged 2 commits into from
Jan 10, 2017

Conversation

sel-fish
Copy link
Contributor

@sel-fish sel-fish commented Jan 3, 2017

  1. support capture zk packet from loopback device
  2. ignore packet which has no user data

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 97.6% when pulling 577f0b9 on sel-fish:develop into 8f8aa72 on twitter:master.

@@ -221,13 +221,14 @@ def handle_packet(self, packet):
message = self.message_from_packet(packet)
self.handle_message(message)
except (BadPacket, StringTooLong, DeserializationError, struct.error) as ex:
print("got: %s" % str(ex))
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's only intended to be verbose if the config is set to dump out "bad packets" so mind deleting this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Yasumoto sorry for that, forgot to remove the debug message. fix it already.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 97.559% when pulling 60fc915 on sel-fish:develop into 8f8aa72 on twitter:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 97.518% when pulling f294562 on sel-fish:develop into 8f8aa72 on twitter:master.

@Yasumoto Yasumoto merged commit ffd817d into twitter:master Jan 10, 2017
@Yasumoto
Copy link
Collaborator

Thanks @sel-fish !

@sel-fish
Copy link
Contributor Author

@Yasumoto the honor is mine :)

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

3 participants