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

Gateway: Log a message->message hash, and put it in message->header #209

Open
Athanasius opened this issue Jan 19, 2023 · 0 comments
Open
Labels
enhancement python Pull requests that update Python code

Comments

@Athanasius
Copy link
Contributor

To facilitate more easily cross-checking a a Relayed message with what was seen in the Gatewaylog:

  1. After the message is parsed into python objects create a hash of the json.dumps(<message component>).
  2. Put this into the message header component as, e.g. msg_hash.
  3. Log this msg_hash in the Gateway.log

NB: Take care that the json.dumps() produces the same string as the Relay ends up sending out so that it can be reconstructed by a Listener if needs be.

@Athanasius Athanasius added enhancement python Pull requests that update Python code labels Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

1 participant