[SYS] Avoid logging sensitive information on serial (#1879)
WiFi Manager log level to Notify Remove MQTT information to serial Remove system information to serial when changing with WebUI
This commit is contained in:
1 parent
a7f43eda87
commit
ef07a339ab
7 files changed
+7
-22
No files matched your search
@@ -641,9 +641,6 @@ void handleWI() {
|
||||
}
|
||||
if (update) {
|
||||
String topic = String(mqtt_topic) + String(gateway_name) + String(subjectMQTTtoSYSset);
|
||||
String output;
|
||||
serializeJson(WEBtoSYS, output);
|
||||
Log.notice(F("[WebUI] MQTTtoSYS %s" CR), output.c_str());
|
||||
Log.warning(F("[WebUI] Save WiFi and Restart" CR));
|
||||
char jsonChar[100];
|
||||
serializeJson(modules, jsonChar, measureJson(modules) + 1);
|
||||
@@ -785,9 +782,6 @@ void handleMQ() {
|
||||
|
||||
delay(2000); // Wait for web page to be sent before
|
||||
String topic = String(mqtt_topic) + String(gateway_name) + String(subjectMQTTtoSYSset);
|
||||
String output;
|
||||
serializeJson(WEBtoSYS, output);
|
||||
Log.notice(F("[WebUI] MQTTtoSYS %s" CR), output.c_str());
|
||||
MQTTtoSYS((char*)topic.c_str(), WEBtoSYS);
|
||||
return;
|
||||
} else {
|
||||
@@ -860,9 +854,6 @@ void handleCG() {
|
||||
|
||||
delay(2000); // Wait for web page to be sent before
|
||||
String topic = String(mqtt_topic) + String(gateway_name) + String(subjectMQTTtoSYSset);
|
||||
String output;
|
||||
serializeJson(WEBtoSYS, output);
|
||||
Log.notice(F("[WebUI] MQTTtoSYS %s" CR), output.c_str());
|
||||
MQTTtoSYS((char*)topic.c_str(), WEBtoSYS);
|
||||
} else {
|
||||
Log.warning(F("[WebUI] No changes" CR));
|
||||
|
||||
Reference in new issue
Block a user