Skip to content

Commit b5ccd32

Browse files
bjorihanumantmk
authored andcommitted
Include internal cluster commands in the trace
This includes isMaster and authentication commands Closes #179
1 parent cea1629 commit b5ccd32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mongoc/mongoc-cluster.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,7 @@ _mongoc_cluster_run_command (mongoc_cluster_t *cluster,
938938
_mongoc_rpc_gather(&rpc, &ar);
939939
_mongoc_rpc_swab_to_le(&rpc);
940940

941+
DUMP_IOVEC (((mongoc_iovec_t *)ar.data), ((mongoc_iovec_t *)ar.data), ar.len);
941942
if (!mongoc_stream_writev(node->stream, ar.data, ar.len,
942943
cluster->sockettimeoutms)) {
943944
GOTO(failure);
@@ -964,6 +965,7 @@ _mongoc_cluster_run_command (mongoc_cluster_t *cluster,
964965
if (!_mongoc_rpc_scatter(&rpc, buffer.data, buffer.len)) {
965966
GOTO(invalid_reply);
966967
}
968+
DUMP_BYTES (&buffer, buffer.data + buffer.off, buffer.len);
967969

968970
_mongoc_rpc_swab_from_le(&rpc);
969971

0 commit comments

Comments
 (0)