disabled debugging messages
This commit is contained in:
+3
-3
@@ -26,7 +26,7 @@
|
||||
#define BROKER_ADDRESS "localhost"
|
||||
#define MQTT_PORT 1883;
|
||||
|
||||
uint debugLevel = INFO | NOTICE | INFO | WARNING | ERROR | ALERT;
|
||||
uint debugLevel = ERROR | ALERT;
|
||||
QByteArray toFollow;
|
||||
|
||||
//class MqttClient;
|
||||
@@ -61,7 +61,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
//declaration of debug level
|
||||
pws2mqtt = new Pws2mqtt;
|
||||
baro = new BarometerTrend;
|
||||
baro = new BarometerTrend;
|
||||
|
||||
pws2mqtt->listeningHttp();
|
||||
|
||||
@@ -108,7 +108,7 @@ void debug(QString debugHeader, QString msg, uint8_t level, QByteArray property)
|
||||
if ((debugLevel & level) == 4)
|
||||
{
|
||||
qInfo("%s%s WARNING: %s%s", debugHeader.toStdString().c_str(), ORANGE, msg.toStdString().c_str(), NORMAL);
|
||||
notify (debugHeader + " - " + msg);
|
||||
notify (debugHeader + " - " + msg);
|
||||
}
|
||||
if ((debugLevel & level) == 8)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user