disabled debugging messages

This commit is contained in:
2026-04-04 13:33:02 +02:00
parent ca5e6b479e
commit 5260442aec
+3 -3
View File
@@ -26,7 +26,7 @@
#define BROKER_ADDRESS "localhost" #define BROKER_ADDRESS "localhost"
#define MQTT_PORT 1883; #define MQTT_PORT 1883;
uint debugLevel = INFO | NOTICE | INFO | WARNING | ERROR | ALERT; uint debugLevel = ERROR | ALERT;
QByteArray toFollow; QByteArray toFollow;
//class MqttClient; //class MqttClient;
@@ -61,7 +61,7 @@ int main(int argc, char *argv[])
//declaration of debug level //declaration of debug level
pws2mqtt = new Pws2mqtt; pws2mqtt = new Pws2mqtt;
baro = new BarometerTrend; baro = new BarometerTrend;
pws2mqtt->listeningHttp(); pws2mqtt->listeningHttp();
@@ -108,7 +108,7 @@ void debug(QString debugHeader, QString msg, uint8_t level, QByteArray property)
if ((debugLevel & level) == 4) if ((debugLevel & level) == 4)
{ {
qInfo("%s%s WARNING: %s%s", debugHeader.toStdString().c_str(), ORANGE, msg.toStdString().c_str(), NORMAL); 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) if ((debugLevel & level) == 8)
{ {