Skip to content

Include database connection ID in log messages #419

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

Merged
merged 1 commit into from
Oct 11, 2018

Conversation

lutovich
Copy link
Contributor

Database assigns IDs to all incoming connections and can send them back to the client in Bolt V3. IDs are sent in SUCCESS response for HELLO message. Clients can use those IDs for logging to for better connection traceability. The same ID is returned in the output of dbms.listConnections procedure.

This PR makes driver extract connection ID form the SUCCESS response and include it in logged messages.

Database assigns IDs to all incoming connections and can send them
back to the client in Bolt V3. IDs are sent in SUCCESS response
for HELLO message. Clients can use those IDs for logging to for better
connection traceability. The same ID is returned in the output of
`dbms.listConnections` procedure.

This commit makes driver extract connection ID form the SUCCESS
response and include it in logged messages.
@lutovich lutovich requested a review from zhenlineo October 11, 2018 10:49
@zhenlineo zhenlineo merged commit b267daf into neo4j:1.7 Oct 11, 2018
@lutovich lutovich deleted the 1.7-connection-id branch October 11, 2018 12:57
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.

2 participants