Skip to content

Commit 744cead

Browse files
authored
Better logging for failure to get connection from pool (#161)
1 parent a5c8dd6 commit 744cead

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,9 @@ where
748748
}
749749
error_response(&mut self.write, "could not get connection from the pool")
750750
.await?;
751-
error!("Could not get connection from pool: {:?}", err);
751+
752+
error!("Could not get connection from pool: {{ pool_name: {:?}, username: {:?}, shard: {:?}, role: \"{:?}\", error: \"{:?}\" }}",
753+
self.pool_name.clone(), self.username.clone(), query_router.shard(), query_router.role(), err);
752754
continue;
753755
}
754756
};

0 commit comments

Comments
 (0)