thermferm/mqtt.c

changeset 509
b5ae9017194f
parent 508
9e67c5f9c994
child 510
2da3d3340403
--- a/thermferm/mqtt.c	Mon May 08 17:03:25 2017 +0200
+++ b/thermferm/mqtt.c	Mon May 08 20:54:51 2017 +0200
@@ -581,7 +581,8 @@
         return;
     }
 
-    mosquitto_log_callback_set(mosq, my_log_callback);
+    if (debug)
+    	mosquitto_log_callback_set(mosq, my_log_callback);
     mosquitto_max_inflight_messages_set(mosq, max_inflight);
     mosquitto_connect_callback_set(mosq, my_connect_callback);
     mosquitto_disconnect_callback_set(mosq, my_disconnect_callback);

mercurial