Better logging for failure to get connection from pool (#161)

This commit is contained in:
Mostafa Abdelraouf
2022-09-07 10:24:07 -05:00
committed by GitHub
parent a5c8dd69b2
commit 744ceada86

View File

@@ -748,7 +748,9 @@ where
}
error_response(&mut self.write, "could not get connection from the pool")
.await?;
error!("Could not get connection from pool: {:?}", err);
error!("Could not get connection from pool: {{ pool_name: {:?}, username: {:?}, shard: {:?}, role: \"{:?}\", error: \"{:?}\" }}",
self.pool_name.clone(), self.username.clone(), query_router.shard(), query_router.role(), err);
continue;
}
};