1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-22 04:00:55 +00:00

Cosmetic changes to debug messages

This commit is contained in:
Martin Mueller 2022-09-22 09:34:11 -04:00
parent ea4a0df4d0
commit 811e0ede4d

View File

@ -446,10 +446,10 @@ bool ESPUIclient::SendJsonDocToWebSocket(DynamicJsonDocument& document)
#if defined(DEBUG_ESPUI) #if defined(DEBUG_ESPUI)
if (ESPUI.verbosity >= Verbosity::VerboseJSON) if (ESPUI.verbosity >= Verbosity::VerboseJSON)
{ {
Serial.println("SendJsonDocToWebSocket: Cannot Send to client. Not sending websocket message"); Serial.println(F("ESPUIclient::SendJsonDocToWebSocket: Cannot Send to client. Not sending websocket message"));
} }
#endif #endif
// Serial.println("SendJsonDocToWebSocket: Cannot Send to client. Not sending websocket message"); // Serial.println("ESPUIclient::SendJsonDocToWebSocket: Cannot Send to client. Not sending websocket message");
Response = false; Response = false;
break; break;
} }
@ -462,17 +462,17 @@ bool ESPUIclient::SendJsonDocToWebSocket(DynamicJsonDocument& document)
#if defined(DEBUG_ESPUI) #if defined(DEBUG_ESPUI)
if (ESPUI.verbosity >= Verbosity::VerboseJSON) if (ESPUI.verbosity >= Verbosity::VerboseJSON)
{ {
Serial.println(String("SendJsonDocToWebSocket: json: '") + json + "'"); Serial.println(String(F("ESPUIclient::SendJsonDocToWebSocket: json: '")) + json + "'");
} }
#endif #endif
#if defined(DEBUG_ESPUI) #if defined(DEBUG_ESPUI)
if (ESPUI.verbosity >= Verbosity::VerboseJSON) if (ESPUI.verbosity >= Verbosity::VerboseJSON)
{ {
Serial.println(F("SendJsonDocToWebSocket: client.text")); Serial.println(F("ESPUIclient::SendJsonDocToWebSocket: client.text"));
} }
#endif #endif
// Serial.println(F("SendJsonDocToWebSocket: client.text")); // Serial.println(F("ESPUIclient::SendJsonDocToWebSocket: client.text"));
client->text(json); client->text(json);
} while (false); } while (false);