log clean

This commit is contained in:
Patrick Haßel 2024-04-12 10:36:45 +02:00
parent 564c1da443
commit adb14378fc

View File

@ -66,14 +66,14 @@ void configPutDouble(const char *name, double value) {
}
void configPrint() {
info("Config:");
info("Config (%s):", lastChangeMillis == 0 ? "PERSISTED" : "TRANSIENT");
for (JsonPair pair: config.as<JsonObject>()) {
const char *key = pair.key().c_str();
const JsonVariant &value = pair.value();
char valueStr[64];
if (strcmp(key, "WIFI_PKEY") == 0) {
snprintf(valueStr, sizeof valueStr, "[PASSWORD REDACTED]");
snprintf(valueStr, sizeof valueStr, "[***]");
} else {
if (value.is<const char *>()) {
snprintf(valueStr, sizeof valueStr, "%s", value.as<const char *>());