Skip to content

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