Skip to content

Commit f357df4

Browse files
committed
Be a little bit more selective on DEBUG messages
1 parent be11f80 commit f357df4

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/mongoc/mongoc-cluster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ _mongoc_cluster_auth_node (mongoc_cluster_t *cluster,
11191119
MONGOC_DEBUG("Authentication failed: %s", error->message);
11201120
} else {
11211121
mongoc_counter_auth_success_inc ();
1122-
MONGOC_DEBUG("Authentication succeeded");
1122+
TRACE("%s", "Authentication succeeded");
11231123
}
11241124

11251125
RETURN(ret);
@@ -1244,7 +1244,7 @@ _mongoc_cluster_add_node (mongoc_cluster_t *cluster,
12441244
BSON_ASSERT (cluster);
12451245
BSON_ASSERT (!cluster->client->topology->single_threaded);
12461246

1247-
MONGOC_DEBUG ("Adding new server to cluster: %s", sd->connection_address);
1247+
TRACE ("Adding new server to cluster: %s", sd->connection_address);
12481248

12491249
stream = _mongoc_client_create_stream(cluster->client, &sd->host, error);
12501250
if (!stream) {

src/mongoc/mongoc-stream-tls.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ _mongoc_stream_tls_bio_read (BIO *b,
221221
BIO_clear_retry_flags (b);
222222

223223
if ((ret <= 0) && MONGOC_ERRNO_IS_AGAIN (errno)) {
224-
MONGOC_DEBUG("set_retry_read");
225224
BIO_set_retry_read (b);
226225
}
227226

@@ -638,7 +637,7 @@ _mongoc_stream_tls_writev (mongoc_stream_t *stream,
638637

639638
child_ret = _mongoc_stream_tls_write (tls, to_write, to_write_len);
640639
if (child_ret != to_write_len) {
641-
MONGOC_DEBUG("Got child_ret: %ld while to_write_len is: %ld",
640+
TRACE("Got child_ret: %ld while to_write_len is: %ld",
642641
child_ret, to_write_len);
643642
}
644643

src/mongoc/mongoc-topology-description.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,9 +1226,9 @@ mongoc_topology_description_handle_ismaster (
12261226
error);
12271227

12281228
if (gSDAMTransitionTable[sd->type][topology->type]) {
1229-
MONGOC_DEBUG("Transitioning to %d for %d", topology->type, sd->type);
1229+
TRACE("Transitioning to %d for %d", topology->type, sd->type);
12301230
gSDAMTransitionTable[sd->type][topology->type] (topology, sd);
12311231
} else {
1232-
MONGOC_DEBUG("No transition entry to %d for %d", topology->type, sd->type);
1232+
TRACE("No transition entry to %d for %d", topology->type, sd->type);
12331233
}
12341234
}

0 commit comments

Comments
 (0)