logging
This commit is contained in:
parent
7700e9bd86
commit
951d15ac81
@ -55,7 +55,7 @@ void configSetup() {
|
||||
}
|
||||
#endif
|
||||
Serial.println("Filesystem-content:");
|
||||
listDir("/", "");
|
||||
listDir("/", " ");
|
||||
}
|
||||
|
||||
File configOpen(const String &path, const bool write) {
|
||||
@ -75,7 +75,7 @@ void doLog(const String &path, const String &value, const bool isPassword, const
|
||||
return;
|
||||
}
|
||||
Serial.printf(
|
||||
"[CONFIG] %-20s = %-30s [%s]\n",
|
||||
"[CONFIG] %-25s = %-30s [%s]\n",
|
||||
path.c_str(),
|
||||
isPassword ? "*" : value.c_str(),
|
||||
type == CONFIG_LOG_FALLBACK ? "fallback" : type == CONFIG_LOG_READ ? "READ" : type == CONFIG_LOG_UNCHANGED ? "UNCHANGED" : type == CONFIG_LOG_WRITE ? "WRITE" : ""
|
||||
|
||||
@ -148,7 +148,7 @@ void httpSetup() {
|
||||
|
||||
server.begin();
|
||||
|
||||
Serial.println("HTTP server started");
|
||||
Serial.println("[HTTP] Server started");
|
||||
httpRunning = true;
|
||||
}
|
||||
|
||||
@ -160,6 +160,6 @@ void httpStop() {
|
||||
if (httpRunning) {
|
||||
httpRunning = false;
|
||||
server.stop();
|
||||
Serial.println("HTTP server stopped");
|
||||
Serial.println("[HTTP] Server stopped");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user