mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
[debug log] Do not remove debug logs from all builds
As discussed here: https://github.com/letscontrolit/ESPEasy/issues/1970#issuecomment-473074737 Only remove them from "normal" and "minimal" builds.
This commit is contained in:
+17
-1
@@ -152,7 +152,7 @@ lib_deps = https://github.com/TD-er/ESPEasySerial.git
|
||||
monitor_speed = 115200
|
||||
|
||||
[debug_flags]
|
||||
build_flags = -DBUILD_NO_DEBUG -DWEBSERVER_RULES_DEBUG=0
|
||||
build_flags = ""
|
||||
|
||||
[common]
|
||||
board_build.f_cpu = 80000000L
|
||||
@@ -785,6 +785,22 @@ build_unflags = ${esp8266_4M.build_unflags}
|
||||
build_flags = ${esp8266_4M.build_flags} ${normal_beta.build_flags}
|
||||
targets = ${common.targets}
|
||||
|
||||
[env:normal_core_260_sdk222_alpha_ESP8266_4M]
|
||||
platform = ${testing_beta.platform}
|
||||
lib_deps = ${common.lib_deps}
|
||||
lib_ignore = ${common.lib_ignore}
|
||||
lib_ldf_mode = ${common.lib_ldf_mode}
|
||||
lib_archive = ${common.lib_archive}
|
||||
framework = ${common.framework}
|
||||
board = ${esp8266_4M.board}
|
||||
upload_speed = ${common.upload_speed}
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
board_build.f_cpu = ${esp8266_4M.board_build.f_cpu}
|
||||
board_build.flash_mode = ${esp8266_4M.board_build.flash_mode}
|
||||
build_unflags = ${esp8266_4M.build_unflags}
|
||||
build_flags = ${esp8266_4M.build_flags} ${normal_beta.build_flags} -DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x
|
||||
targets = ${common.targets}
|
||||
|
||||
|
||||
[env:test_core_260_sdk2_alpha_ESP8266_4M]
|
||||
platform = ${testing_beta.platform}
|
||||
|
||||
@@ -710,7 +710,8 @@ bool send_via_http(const String& logIdentifier, WiFiClient& client, const String
|
||||
if (line.startsWith(F("HTTP/1.1 2")))
|
||||
{
|
||||
success = true;
|
||||
#ifndef BUILD_NO_DEBUG
|
||||
// Leave this debug info in the build, regardless of the
|
||||
// BUILD_NO_DEBUG flags.
|
||||
if (loglevelActiveFor(LOG_LEVEL_DEBUG)) {
|
||||
String log = F("HTTP : ");
|
||||
log += logIdentifier;
|
||||
@@ -718,7 +719,6 @@ bool send_via_http(const String& logIdentifier, WiFiClient& client, const String
|
||||
log += line;
|
||||
addLog(LOG_LEVEL_DEBUG, log);
|
||||
}
|
||||
#endif
|
||||
} else if (line.startsWith(F("HTTP/1.1 4"))) {
|
||||
if (loglevelActiveFor(LOG_LEVEL_ERROR)) {
|
||||
String log = F("HTTP : ");
|
||||
|
||||
@@ -100,6 +100,14 @@ To create/register a plugin, you have to :
|
||||
#define PLUGIN_SET_STABLE
|
||||
#define CONTROLLER_SET_STABLE
|
||||
#define NOTIFIER_SET_STABLE
|
||||
|
||||
#ifndef BUILD_NO_DEBUG
|
||||
#define BUILD_NO_DEBUG
|
||||
#endif
|
||||
#ifdef WEBSERVER_RULES_DEBUG
|
||||
#undef WEBSERVER_RULES_DEBUG
|
||||
#endif
|
||||
#define WEBSERVER_RULES_DEBUG 0
|
||||
#endif
|
||||
|
||||
#ifdef PLUGIN_BUILD_MINIMAL_OTA
|
||||
|
||||
Reference in New Issue
Block a user