Skip to content

Commit b6b6e96

Browse files
committed
Unhide this
1 parent 908449d commit b6b6e96

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

php_phongo.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ void phongo_log_writer(mongoc_stream_t *stream, int32_t timeout_msec, ssize_t se
234234
/* FIXME: In a ReplicaSet, node->stream is not guranteed to be the wrapped stream, only the raw mongoc_stream_t */
235235
/*mongoc_log(MONGOC_LOG_LEVEL_MESSAGE, MONGOC_LOG_DOMAIN, "Wrote %zd bytes to '%s:%d' in %zd iterations", sent, base_stream->host->host, base_stream->host->port, iovcnt);*/
236236
}
237+
238+
php_phongo_stream_logger phongo_stream_logger = {
239+
phongo_log_writer,
240+
};
241+
237242
/* }}} */
238243

239244
/* {{{ Init objects */
@@ -759,10 +764,6 @@ mongoc_stream_t* phongo_stream_get_base_stream(mongoc_stream_t *stream) /* {{{ *
759764
return (mongoc_stream_t *) stream;
760765
} /* }}} */
761766

762-
php_phongo_stream_logger phongo_stream_logger = {
763-
phongo_log_writer,
764-
};
765-
766767
mongoc_stream_t* phongo_stream_initiator(const mongoc_uri_t *uri, const mongoc_host_list_t *host, void *user_data, bson_error_t *error) /* {{{ */
767768
{
768769
php_phongo_stream_socket *base_stream = NULL;

0 commit comments

Comments
 (0)