[CDRIVER-2974] Add flag to print mock server messages received Created: 21/Feb/19  Updated: 27/Oct/23  Resolved: 28/Apr/20

Status: Closed
Project: C Driver
Component/s: libmongoc, tests
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CDRIVER-2733

 Description   

An idea that came out of discussion with clyde.bazile for mock tests in CDRIVER-2939, it would be helpful for our own development of mock server tests if we could enable the mock server print out messages it receives. E.g. something like:

mock_server_enable_debug(mock_server);

Tracing technically does this, but tracing is super verbose and easy to read through.



 Comments   
Comment by Kevin Albertson [ 28/Apr/20 ]

We already have this in the form of an environment variable MONGOC_TEST_SERVER_LOG=stdout, documented in CONTRIBUTING.md.

Generated at Wed Feb 07 21:16:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.