From 8d736b160dd404889c9384e995538a7b5e14d5fe Mon Sep 17 00:00:00 2001 From: Barbudor Date: Wed, 1 Sep 2021 21:37:21 +0200 Subject: [PATCH] update logs --- tasmota/xdrv_01_webserver.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index 925f7f275..9c08bebfb 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -3124,7 +3124,7 @@ int WebGetConfig(char *buffer) RemoveSpace(buffer); // host = |[192.168.178.86:80,admin:joker| String url = ResolveToken(buffer); - AddLog(LOG_LEVEL_DEBUG, PSTR("WEB: Config Uri |%s|"), url.c_str()); + DEBUG_CORE_LOG(PSTR("WEB: Config Uri |%s|"), url.c_str()); WiFiClient http_client; HTTPClient http; @@ -3147,17 +3147,17 @@ int WebGetConfig(char *buffer) delayMicroseconds(1); } if (len) { - AddLog(LOG_LEVEL_DEBUG, PSTR("WEB: Connection lost")); + DEBUG_CORE_LOG(PSTR("WEB: Connection lost")); status = WEBCMND_CONNECTION_LOST; } else if (SettingsConfigRestore()) { AddLog(LOG_LEVEL_INFO, PSTR("WEB: Settings applied, restarting")); TasmotaGlobal.restart_flag = 2; // Always restart to re-enable disabled features during update } else { - AddLog(LOG_LEVEL_DEBUG, PSTR("WEB: Settings file invalid")); + DEBUG_CORE_LOG(PSTR("WEB: Settings file invalid")); status = WEBCMND_INVALID_FILE; } } else { - AddLog(LOG_LEVEL_DEBUG, PSTR("WEB: Memory error (%d) or invalid file length (%d)"), settings_buffer, len); + DEBUG_CORE_LOG(PSTR("WEB: Memory error (%d) or invalid file length (%d)"), settings_buffer, len); status = WEBCMND_MEMORY_ERROR; } } else { @@ -3165,7 +3165,7 @@ int WebGetConfig(char *buffer) status = (http_code == HTTP_CODE_NOT_FOUND) ? WEBCMND_FILE_NOT_FOUND : WEBCMND_OTHER_HTTP_ERROR; } } else { - AddLog(LOG_LEVEL_DEBUG, PSTR("WEB: Connection failed")); + DEBUG_CORE_LOG(PSTR("WEB: Connection failed")); status = 2; // Connection failed } http.end(); // Clean up connection data