LOG_ERROR trace level and trace default for HIGH_PERFORMANCE #1026

This commit is contained in:
Ian Craggs 2021-05-04 17:38:43 +01:00
parent da998eab07
commit ef9b4c7cc6
2 changed files with 6 additions and 2 deletions

View File

@ -66,7 +66,11 @@
trace_settings_type trace_settings =
{
#if defined(HIGH_PERFORMANCE)
LOG_ERROR,
#else
TRACE_MINIMUM,
#endif
400,
INVALID_LEVEL
};
@ -227,7 +231,7 @@ void Log_setTraceCallback(Log_traceCallback* callback)
void Log_setTraceLevel(enum LOG_LEVELS level)
{
if (level < LOG_ERROR) /* the lowest we can go is LOG_ERROR */
if (level <= LOG_ERROR) /* the lowest we can go is LOG_ERROR */
trace_settings.trace_level = level;
trace_output_level = level;
}

View File

@ -937,7 +937,7 @@ int test_flow_control(struct Options options)
failures = 0;
MyLog(LOGA_INFO, "Starting test - flow control");
//MQTTClient_setTraceCallback(test_flow_control_trace_callback);
MQTTClient_setTraceLevel(MQTTCLIENT_TRACE_MINIMUM); /* to get the blocking trace message */
createOpts.MQTTVersion = MQTTVERSION_5;
rc = MQTTClient_createWithOptions(&c, options.connection, "flow_control",