How to supress debug-messages from Serial Monitor?

Hi!

I just changed from Arduino-IDE to PlatformIO. I can compile, upload and run my program, but my serial console is flooded with something like

%d,%d>, passive=%d
ord is empty
 aid = %d, channel %d, %s, bssid = %02x:%02x:%02x:%02x:%02x:%02x
M�@��@M�@M�@M�@��@M�@��@M�@M�@2�@M�@M�@M�@M�@M�@M�@M�@M�@��@M�@A�@2�@��@��@��@M�@2�@M�@M�@M�@M�@��@2�@��@M�@M�@��@M�@2�@M�@M�@2�@�@i�@��@F�@z�@��@��@E�@��@E�@�@�@E�@��@��@��@��@��@��@��@p�@��@��@��@��@��@��@��@��@ �@&�@&�@&�@&�@&�@&�@&�@&�@&�@��@��@��@��@��@��@��@�
@��@��@��@��@��@��@��@��@��@��@��@��@��@��@��@��@��@U�@��@M�@��@��@j�@��@��@��@��@��@��@��@��@��@��@��@��@��@��@��@Y�@��@��@��@x�@��@��@��@y�@��@��@U�@:�@R�@��@��@#�@��@:�@0000000000000000                *@m�@r�@��@�@�@�@�@T@��@>@I@T@T@T@��@��@��@��@��@��@��@I@��@�
�@��@3@��@I@��@��@��@��@��@��@��@��@��@��@��@T@��@��@��@T@T@T@��@��@��@��@��@��@3@��@3@��@��@3@��@��@��@��@��@�
d(@d(@d(@d(@d(@d(@d(@d(@
d@in@in@T@in@in@in@in@in@in@in@in@in@in@8W@!X@in@in@in@�V@!X@1W@in@W@in@}[@e_@c@1W@in@�c@�S@�d@in@in@�h@in@�S@0000000000000000
-2s %-3s %-5s %-11s %-10s %-8s %-8s

0.0W 0.00V

Its very hard for me to find my own printed debugging messages. How can i supress this “internal” messages?

I´ve tried
build_flags = -DCORE_DEBUG_LEVEL=0
in platformio.ini

and
#define LOG_LOCAL_LEVEL ESP_LOG_ERROR
in my code.

unfortunally without success.

When i build with arduino-ide there are only my own messages visible. Is that even possible with platformio?

Thanks!

The output looks extremely broken with format strings being there. Also, debug level 0 (none) is already default.

Can you please

  • show your platformio.ini
  • show the code
  • show the version of the ESP32 core in the Arduino IDE boards manager
; PlatformIO Project Configuration File

;

;   Build options: build flags, source filter

;   Upload options: custom upload port, speed and extra flags

;   Library options: dependencies, extra library storages

;   Advanced options: extra scripting

;

; Please visit documentation for the other options and examples

; https://docs.platformio.org/page/projectconf.html

[env:heltec_wifi_kit_32]

platform = espressif32

board = heltec_wifi_kit_32

framework = arduino

lib_deps = 

    lorol/LittleFS_esp32@^1.0.6

    olikraus/U8g2@^2.28.8

    wollewald/INA226_WE@^1.2.3

    adafruit/Adafruit DPS310@^1.1.1

monitor_speed = 115200

monitor_filters = direct, esp32_exception_decoder

build_flags = -DCORE_DEBUG_LEVEL=0

[platformio]

description = BafangTQ2 von Arduino

the full code is to big.

First lines:
#define LOG_LOCAL_LEVEL ESP_LOG_ERROR
#include <Arduino.h>

You mean that?

I am too stupid. Just found out i had the wrong configuration active!

is it possible in platformio to configure the output of log messages only from some of its functions? Cannot manage LOG_LOCAL_LEVEL. This is my platformio.ini
[env:esp32dev]
platform = espressif32
board = esp32dev
board_build.flash_mode = qio
board_build.f_flash = 80000000L
board_build.f_cpu = 240000000L
board_build.filesystem = littlefs
board_build.partitions = no_ota.csv
framework = arduino
build_flags = -DCORE_DEBUG_LEVEL=5

If you lower the CORE_DEBUG_LEVEL level, then this completely affects all logging.