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

Added packet tracing #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

he-is-harry
Copy link
Contributor

  • Packet tracing can be turned on by setting the HDB_TRACE environment variable
    • To turn off packet tracing unset the HDB_TRACE environment variable (unset HDB_TRACE)
  • Trace files are saved with the name 'hdb.trace.{timestamp / 1000}.log'

Changes

  • Added the PacketTracer.js file to parse packets and return the message to log in the trace file
  • Rearranged the locations of traces in Connection.js to trace with the raw packet instead of segment objects
  • Added two unit tests to check the packet tracer

- Packet tracing can be turned on by setting the HDB_TRACE environment variable
    - To turn off packet tracing unset the HDB_TRACE environment variable (`unset HDB_TRACE`)
- Trace files are saved with the name 'hdb.trace.{timestamp / 1000}.log'

Changes
- Added the PacketTracer.js file to parse packets and return the message to log in the trace file
- Rearranged the locations of traces in Connection.js to trace with the raw packet instead of segment objects
- Added two unit tests to check the packet tracer
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.

1 participant