Skip to content

Commit

Permalink
Merge pull request #27 from robsdedude/fix/logging-spaces
Browse files Browse the repository at this point in the history
Debug bolt logs: remove superfluous spaces
  • Loading branch information
robsdedude authored Feb 4, 2025
2 parents 4077da0 + 5795422 commit 769f136
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- The invariants of `Path` were changed for the above reason, too.
- New methods `Path::new()`, `Path::new_unchecked()`, and `Path::verify_invariants()`.
- Fix connection hint `connection.recv_timeout_seconds` should only be applied to reads, not writes.
- Fix superfluous spaces in bolt debug logs.


## 0.1.0
Expand Down
6 changes: 3 additions & 3 deletions neo4j/src/driver/io/bolt/bolt5x0/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl<T: BoltStructTranslator> Bolt5x0<T> {
) -> Result<()> {
serializer.write_string(key)?;
serializer.write_string(value)?;
debug_buf!(log_buf, " {}", {
debug_buf!(log_buf, "{}", {
dbg_serializer.write_string(key).unwrap();
dbg_serializer.write_string(value).unwrap();
dbg_serializer.flush()
Expand All @@ -169,7 +169,7 @@ impl<T: BoltStructTranslator> Bolt5x0<T> {
) -> Result<()> {
serializer.write_string(key)?;
serializer.write_int(value)?;
debug_buf!(log_buf, " {}", {
debug_buf!(log_buf, "{}", {
dbg_serializer.write_string(key).unwrap();
dbg_serializer.write_int(value).unwrap();
dbg_serializer.flush()
Expand All @@ -188,7 +188,7 @@ impl<T: BoltStructTranslator> Bolt5x0<T> {
) -> Result<()> {
serializer.write_string(key)?;
data.serialize_dict(serializer, &self.translator, value)?;
debug_buf!(log_buf, " {}", {
debug_buf!(log_buf, "{}", {
dbg_serializer.write_string(key).unwrap();
data.serialize_dict(dbg_serializer, &self.translator, value)
.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion neo4j/src/driver/io/bolt/bolt5x3/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl<T: BoltStructTranslator> Bolt5x3<T> {
serializer.write_string(BOLT_AGENT_LANGUAGE)?;
serializer.write_string("language_details")?;
serializer.write_string(BOLT_AGENT_LANGUAGE_DETAILS)?;
debug_buf!(log_buf, " {}", {
debug_buf!(log_buf, "{}", {
dbg_serializer.write_string("bolt_agent").unwrap();
dbg_serializer.write_dict_header(4).unwrap();
dbg_serializer.write_string("product").unwrap();
Expand Down

0 comments on commit 769f136

Please sign in to comment.