Skip to content

Fix log message doesn't appearing correctly in the Bolt log. #756

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jun 11, 2021

Conversation

bigmontz
Copy link
Contributor

The write and receive message functions were moved from the connection to the response-handler and bolt-protocol, but logs on the functions still creating the message using the this, but in the nnew context the value of this is not serialized as the connection id.

Since the connection id data is dynamic and the depends on a response from the server, the issue was solved decorating the logger function to add connection context information.

The write and receive message functions were moved from the connection to the `response-handler` and `bolt-protocol`, but logs on the functions still creating the message using the `this`, but in the nnew context the value of `this` is not serialized as the connection id.

Since the connection id data is dynamic and the depends on a response from the server, the issue was solved decorating the logger function to add connection context information.
@bigmontz bigmontz force-pushed the 4.3-fix-log-message branch from 2ffec4a to 077294a Compare June 11, 2021 15:09
@bigmontz bigmontz marked this pull request as ready for review June 11, 2021 15:12
@fbiville fbiville self-requested a review June 11, 2021 15:51
@bigmontz bigmontz merged commit 44358a8 into neo4j:4.3 Jun 11, 2021
@bigmontz bigmontz deleted the 4.3-fix-log-message branch June 11, 2021 18:13
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants