Commit 1d9b394c authored by Ian Craggs's avatar Ian Craggs

Reduce log verbosity for test 2d

parent dcf457e0
...@@ -1024,9 +1024,12 @@ int test2d(struct Options options) ...@@ -1024,9 +1024,12 @@ int test2d(struct Options options)
for (iteration = 0; !failures && (iteration < 20) ; iteration++) for (iteration = 0; !failures && (iteration < 20) ; iteration++)
{ {
count = 0; count = 0;
MQTTAsync_setTraceLevel(MQTTASYNC_TRACE_ERROR);
rc = MQTTAsync_create(&c, options.mutual_auth_connection, rc = MQTTAsync_create(&c, options.mutual_auth_connection,
"test2d", MQTTCLIENT_PERSISTENCE_DEFAULT, NULL); "test2d", MQTTCLIENT_PERSISTENCE_DEFAULT, NULL);
assert("good rc from create", rc == MQTTASYNC_SUCCESS, "rc was %d\n", rc); assert("good rc from create", rc == MQTTASYNC_SUCCESS, "rc was %d\n", rc);
if (rc != MQTTASYNC_SUCCESS) if (rc != MQTTASYNC_SUCCESS)
{ {
MQTTAsync_destroy(&c); MQTTAsync_destroy(&c);
...@@ -1050,10 +1053,6 @@ int test2d(struct Options options) ...@@ -1050,10 +1053,6 @@ int test2d(struct Options options)
opts.ssl = &sslopts; opts.ssl = &sslopts;
if (options.server_key_file != NULL) opts.ssl->trustStore = options.server_key_file; /*file of certificates trusted by client*/ if (options.server_key_file != NULL) opts.ssl->trustStore = options.server_key_file; /*file of certificates trusted by client*/
opts.ssl->keyStore = NULL; /*file of certificate for client to present to server - In this test the client has no certificate! */ opts.ssl->keyStore = NULL; /*file of certificate for client to present to server - In this test the client has no certificate! */
//if (options.client_key_pass != NULL)
// opts.ssl->privateKeyPassword = options.client_key_pass;
//opts.ssl->enabledCipherSuites = "DEFAULT";
//opts.ssl->enabledServerCertAuth = 0;
test2dFinished = 0; test2dFinished = 0;
MyLog(LOGA_DEBUG, "Connecting"); MyLog(LOGA_DEBUG, "Connecting");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment