mirror of https://github.com/eclipse/paho.mqtt.c
LOG_ERROR trace level and trace default for HIGH_PERFORMANCE #1026
This commit is contained in:
parent
da998eab07
commit
ef9b4c7cc6
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue