Since c3c14f4 in the 1.1.x branch, entry/exit tracing apppears on SASL mutex callbacks that are initalized in MONGOC_ONCE_FUN() in mongoc-init.c. MONGOC_ONCE_FUN() is in turn called before any custom log handlers can be configured, which means output like the following ends up on stderr before a user of the driver can capture it elsewhere:
2015/07/01 15:59:13.0495: [ 441]: TRACE: mongoc: ENTRY: mongoc_sasl_mutex_alloc():40 2015/07/01 15:59:13.0495: [ 441]: TRACE: mongoc: EXIT: mongoc_sasl_mutex_alloc():45 2015/07/01 15:59:13.0496: [ 441]: TRACE: mongoc: ENTRY: mongoc_sasl_mutex_alloc():40 2015/07/01 15:59:13.0496: [ 441]: TRACE: mongoc: EXIT: mongoc_sasl_mutex_alloc():45
Looking at other code invoked by the init methods, I see that the SSL and SCRAM init functions don't use any tracing, nor are there any tests for trace output for these SASL mutex functions. Should we simply remove the traces, or is there a more elaborate solution to be considered?
- is depended on by
-
PHPC-306 Check for sasl_client_done when generating mongoc-config.h
- Closed
- is related to
-
CDRIVER-547 inappropriate use of sasl_client_init and sasl_client_done
- Closed