-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable log output (GIT8266O-660) #1082
Comments
please show your menuconfig log outpt settings here |
`# Automatically generated file. DO NOT EDIT.Espressif IoT Development Framework (ESP-IDF) Project ConfigurationCONFIG_IDF_TARGET_ESP8266=y SDK tool configurationCONFIG_SDK_TOOLPREFIX="xtensa-lx106-elf-" CONFIG_SDK_MAKE_WARN_UNDEFINED_VARIABLES is not setCONFIG_BOOTLOADER_INIT_SPI_FLASH is not setCONFIG_BOOTLOADER_DISABLE_JTAG_IO is not setCONFIG_BOOTLOADER_FAST_BOOT is not setCONFIG_LOG_BOOTLOADER_LEVEL_NONE=y CONFIG_LOG_BOOTLOADER_LEVEL_ERROR is not setCONFIG_LOG_BOOTLOADER_LEVEL_WARN is not setCONFIG_LOG_BOOTLOADER_LEVEL_INFO is not setCONFIG_LOG_BOOTLOADER_LEVEL_DEBUG is not setCONFIG_LOG_BOOTLOADER_LEVEL_VERBOSE is not setCONFIG_LOG_BOOTLOADER_LEVEL=0 CONFIG_BOOTLOADER_APP_TEST is not setCONFIG_BOOTLOADER_STORE_OFFSET=0x0 CONFIG_ESPTOOLPY_BAUD_230400B is not setCONFIG_ESPTOOLPY_BAUD_921600B is not setCONFIG_ESPTOOLPY_BAUD_2MB is not setCONFIG_ESPTOOLPY_BAUD_OTHER is not setCONFIG_ESPTOOLPY_BAUD_OTHER_VAL=115200 CONFIG_ESPTOOLPY_FLASHMODE_QOUT is not setCONFIG_ESPTOOLPY_FLASHMODE_DIO is not setCONFIG_ESPTOOLPY_FLASHMODE_DOUT is not setCONFIG_ESPTOOLPY_FLASHMODE="dio" CONFIG_ESPTOOLPY_FLASHFREQ_80M is not setCONFIG_ESPTOOLPY_FLASHFREQ_40M=y CONFIG_ESPTOOLPY_FLASHFREQ_26M is not setCONFIG_ESPTOOLPY_FLASHFREQ_20M is not setCONFIG_ESPTOOLPY_FLASHFREQ="40m" CONFIG_ESPTOOLPY_FLASHSIZE_1MB is not setCONFIG_ESPTOOLPY_FLASHSIZE_2MB=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB is not setCONFIG_ESPTOOLPY_FLASHSIZE_8MB is not setCONFIG_ESPTOOLPY_FLASHSIZE_16MB is not setCONFIG_ESPTOOLPY_FLASHSIZE="2MB" CONFIG_ESPTOOLPY_BEFORE_NORESET is not setCONFIG_ESPTOOLPY_BEFORE="default_reset" CONFIG_ESPTOOLPY_AFTER_SOFT_RESET is not setCONFIG_ESPTOOLPY_AFTER_NORESET is not setCONFIG_ESPTOOLPY_AFTER="hard_reset" CONFIG_ESPTOOLPY_MONITOR_BAUD_9600B is not setCONFIG_ESPTOOLPY_MONITOR_BAUD_57600B is not setCONFIG_ESPTOOLPY_MONITOR_BAUD_74880B=y CONFIG_ESPTOOLPY_MONITOR_BAUD_115200B is not setCONFIG_ESPTOOLPY_MONITOR_BAUD_230400B is not setCONFIG_ESPTOOLPY_MONITOR_BAUD_921600B is not setCONFIG_ESPTOOLPY_MONITOR_BAUD_2MB is not setCONFIG_ESPTOOLPY_MONITOR_BAUD_OTHER is not setCONFIG_ESPTOOLPY_MONITOR_BAUD_OTHER_VAL=74880 CONFIG_PARTITION_TABLE_TWO_OTA is not setCONFIG_PARTITION_TABLE_CUSTOM is not setCONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv" CONFIG_COMPILER_OPTIMIZATION_LEVEL_RELEASE is not setCONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT is not setCONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE is not setCONFIG_COMPILER_CXX_EXCEPTIONS is not setCONFIG_COMPILER_STACK_CHECK_MODE_NONE=y CONFIG_COMPILER_STACK_CHECK_MODE_NORM is not setCONFIG_COMPILER_STACK_CHECK_MODE_STRONG is not setCONFIG_COMPILER_STACK_CHECK_MODE_ALL is not setCONFIG_COMPILER_STACK_CHECK is not setCONFIG_COMPILER_WARN_WRITE_STRINGS is not setCONFIG_APP_UPDATE_CHECK_APP_SUM=y CONFIG_APP_UPDATE_CHECK_APP_HASH is not setCONFIG_APP_COMPILE_TIME_DATE=y CONFIG_APP_EXCLUDE_PROJECT_VER_VAR is not setCONFIG_APP_EXCLUDE_PROJECT_NAME_VAR is not setCONFIG_APP_PROJECT_VER_FROM_CONFIG is not setCONFIG_ENABLE_COAP is not setCONFIG_ESP_TLS_USING_MBEDTLS=y CONFIG_ESP_TLS_USING_WOLFSSL is not setCONFIG_ESP_TLS_SERVER is not setCONFIG_ESP_TLS_PSK_VERIFICATION is not setCONFIG_ESP_WOLFSSL_INTERNAL is not setCONFIG_WOLFSSL_DEBUG is not setCONFIG_ESP8266_NMI_WDT=y CONFIG_ESP8266_XTAL_FREQ_40 is not setCONFIG_ESP8266_XTAL_FREQ_26=y CONFIG_ESP8266_DEFAULT_CPU_FREQ_80 is not setCONFIG_ESP8266_DEFAULT_CPU_FREQ_160=y CONFIG_ESP_FILENAME_MACRO_RAW is not setCONFIG_ESP_FILENAME_MACRO_NULL is not setCONFIG_USING_NEW_ETS_VPRINTF=y CONFIG_LINK_ETS_PRINTF_TO_IRAM is not setCONFIG_ETS_PRINTF_EXIT_WHEN_FLASH_RW=y CONFIG_SOC_FULL_ICACHE is not setCONFIG_SOC_IRAM_SIZE=0xC000 CONFIG_DISABLE_ROM_UART_PRINT is not setCONFIG_ESP_PANIC_PRINT_HALT is not setCONFIG_ESP_PANIC_PRINT_REBOOT=y CONFIG_ESP_PANIC_SILENT_REBOOT is not setCONFIG_ESP_PANIC_GDBSTUB is not setCONFIG_RESET_REASON=y CONFIG_ESP8266_OTA_FROM_OLD is not setCONFIG_ESP8266_BOOT_COPY_APP is not setCONFIG_ESP8266_TIME_SYSCALL_USE_FRC1=y CONFIG_ESP8266_TIME_SYSCALL_USE_NONE is not setCONFIG_PM_ENABLE is not setCONFIG_SCAN_AP_MAX=99 CONFIG_ESP8266_WIFI_QOS_ENABLED is not setCONFIG_ESP8266_WIFI_AMPDU_RX_ENABLED is not setCONFIG_ESP8266_WIFI_AMSDU_ENABLED is not setCONFIG_ESP8266_WIFI_RX_BUFFER_NUM=16 CONFIG_ESP8266_WIFI_DEBUG_LOG_ENABLE is not setCONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE=y CONFIG_ESP_PHY_INIT_DATA_IN_PARTITION is not setCONFIG_ESP_PHY_INIT_DATA_VDD33_CONST=33 CONFIG_ESP8266_HSPI_HIGH_THROUGHPUT is not setCONFIG_ESP_ERR_TO_NAME_LOOKUP=y CONFIG_ESP_CONSOLE_UART_CUSTOM is not setCONFIG_ESP_CONSOLE_UART_NONE is not setCONFIG_ESP_CONSOLE_UART_NUM=0 CONFIG_ESP_UART0_SWAP_IO is not setCONFIG_ESP_TASK_WDT=y CONFIG_ESP_TASK_WDT_TIMEOUT_13N is not setCONFIG_ESP_TASK_WDT_TIMEOUT_14N is not setCONFIG_ESP_TASK_WDT_TIMEOUT_15N=y CONFIG_ESP_EVENT_LOOP_PROFILING is not setCONFIG_ESP_EVENT_POST_FROM_ISR=y CONFIG_ESP_HTTP_CLIENT_ENABLE_BASIC_AUTH is not setCONFIG_HTTP_BUF_SIZE=512 CONFIG_OTA_ALLOW_HTTP is not setCONFIG_FATFS_CODEPAGE_DYNAMIC is not setCONFIG_FATFS_CODEPAGE_437=y CONFIG_FATFS_CODEPAGE_720 is not setCONFIG_FATFS_CODEPAGE_737 is not setCONFIG_FATFS_CODEPAGE_771 is not setCONFIG_FATFS_CODEPAGE_775 is not setCONFIG_FATFS_CODEPAGE_850 is not setCONFIG_FATFS_CODEPAGE_852 is not setCONFIG_FATFS_CODEPAGE_855 is not setCONFIG_FATFS_CODEPAGE_857 is not setCONFIG_FATFS_CODEPAGE_860 is not setCONFIG_FATFS_CODEPAGE_861 is not setCONFIG_FATFS_CODEPAGE_862 is not setCONFIG_FATFS_CODEPAGE_863 is not setCONFIG_FATFS_CODEPAGE_864 is not setCONFIG_FATFS_CODEPAGE_865 is not setCONFIG_FATFS_CODEPAGE_866 is not setCONFIG_FATFS_CODEPAGE_869 is not setCONFIG_FATFS_CODEPAGE_932 is not setCONFIG_FATFS_CODEPAGE_936 is not setCONFIG_FATFS_CODEPAGE_949 is not setCONFIG_FATFS_CODEPAGE_950 is not setCONFIG_FATFS_CODEPAGE=437 CONFIG_FATFS_LFN_HEAP is not setCONFIG_FATFS_LFN_STACK is not setCONFIG_FATFS_FS_LOCK=0 CONFIG_FMB_TIMER_ISR_IN_IRAM is not setCONFIG_DISABLE_FREERTOS is not setCONFIG_FREERTOS_UNICORE=y CONFIG_FREERTOS_ENABLE_REENT is not setCONFIG_FREERTOS_NO_AFFINITY=0x7FFFFFFF CONFIG_FREERTOS_EXTENED_HOOKS is not setCONFIG_FREERTOS_GLOBAL_DATA_LINK_IRAM=y CONFIG_FREERTOS_CODE_LINK_TO_IRAM is not setCONFIG_FREERTOS_TIMER_STACKSIZE=2048 CONFIG_USE_QUEUE_SETS is not setCONFIG_ENABLE_FREERTOS_SLEEP is not setCONFIG_FREERTOS_USE_TRACE_FACILITY is not setCONFIG_FREERTOS_GENERATE_RUN_TIME_STATS is not setCONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y CONFIG_HEAP_DISABLE_IRAM is not setCONFIG_HEAP_TRACING is not setCONFIG_LIBSODIUM_USE_MBEDTLS_SHA=y CONFIG_LOG_DEFAULT_LEVEL_NONE is not setCONFIG_LOG_DEFAULT_LEVEL_ERROR is not setCONFIG_LOG_DEFAULT_LEVEL_WARN is not setCONFIG_LOG_DEFAULT_LEVEL_INFO=y CONFIG_LOG_DEFAULT_LEVEL_DEBUG is not setCONFIG_LOG_DEFAULT_LEVEL_VERBOSE is not setCONFIG_LOG_DEFAULT_LEVEL=3 CONFIG_LOG_SET_LEVEL is not setCONFIG_LWIP_LOCAL_HOSTNAME="espressif" CONFIG_LWIP_L2_TO_L3_COPY is not setCONFIG_LWIP_IRAM_OPTIMIZATION is not setCONFIG_LWIP_TIMERS_ONDEMAND=y CONFIG_LWIP_USE_ONLY_LWIP_SELECT is not setCONFIG_LWIP_SO_LINGER is not setCONFIG_LWIP_SO_REUSE=y CONFIG_LWIP_SO_RCVBUF is not setCONFIG_LWIP_NETBUF_RECVINFO is not setCONFIG_LWIP_IP4_FRAG=y CONFIG_LWIP_IP4_REASSEMBLY is not setCONFIG_LWIP_IP6_REASSEMBLY is not setCONFIG_LWIP_IP_FORWARD is not setCONFIG_LWIP_STATS is not setCONFIG_LWIP_ETHARP_TRUST_IP_MAC is not setCONFIG_LWIP_ESP_GRATUITOUS_ARP=y CONFIG_LWIP_DHCP_RESTORE_LAST_IP is not setCONFIG_LWIP_DHCPS_LEASE_UNIT=60 CONFIG_LWIP_AUTOIP is not setCONFIG_LWIP_IPV6_AUTOCONFIG is not setCONFIG_LWIP_NETIF_LOOPBACK=y CONFIG_LWIP_TCP_SACK_OUT is not setCONFIG_LWIP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES is not setCONFIG_LWIP_TCP_OVERSIZE_MSS=y CONFIG_LWIP_TCP_OVERSIZE_QUARTER_MSS is not setCONFIG_LWIP_TCP_OVERSIZE_DISABLE is not setCONFIG_LWIP_TCP_RTO_TIME=3000 CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU0 is not setCONFIG_LWIP_TCPIP_TASK_AFFINITY=0x7FFFFFFF CONFIG_LWIP_PPP_SUPPORT is not setCONFIG_LWIP_IPV6_MEMP_NUM_ND6_QUEUE=3 CONFIG_LWIP_MULTICAST_PING is not setCONFIG_LWIP_BROADCAST_PING is not setCONFIG_LWIP_MAX_RAW_PCBS=16 CONFIG_LWIP_IPV6 is not setCONFIG_LWIP_DHCP_MAX_NTP_SERVERS=1 CONFIG_LWIP_DEBUG is not setCONFIG_MBEDTLS_INTERNAL_MEM_ALLOC=y CONFIG_MBEDTLS_DEFAULT_MEM_ALLOC is not setCONFIG_MBEDTLS_CUSTOM_MEM_ALLOC is not setCONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN=y CONFIG_MBEDTLS_DYNAMIC_BUFFER is not setCONFIG_MBEDTLS_DEBUG is not setCONFIG_MBEDTLS_HAVE_TIME=y CONFIG_MBEDTLS_HAVE_TIME_DATE is not setCONFIG_MBEDTLS_TLS_SERVER_AND_CLIENT=y CONFIG_MBEDTLS_TLS_SERVER_ONLY is not setCONFIG_MBEDTLS_TLS_CLIENT_ONLY is not setCONFIG_MBEDTLS_TLS_DISABLED is not setCONFIG_MBEDTLS_TLS_SERVER=y CONFIG_MBEDTLS_PSK_MODES is not setCONFIG_MBEDTLS_KEY_EXCHANGE_RSA=y CONFIG_MBEDTLS_SSL_PROTO_SSL3 is not setCONFIG_MBEDTLS_SSL_PROTO_TLS1=y CONFIG_MBEDTLS_SSL_PROTO_DTLS is not setCONFIG_MBEDTLS_SSL_ALPN=y CONFIG_MBEDTLS_CAMELLIA_C is not setCONFIG_MBEDTLS_DES_C is not setCONFIG_MBEDTLS_RC4_DISABLED=y CONFIG_MBEDTLS_RC4_ENABLED_NO_DEFAULT is not setCONFIG_MBEDTLS_RC4_ENABLED is not setCONFIG_MBEDTLS_BLOWFISH_C is not setCONFIG_MBEDTLS_XTEA_C is not setCONFIG_MBEDTLS_CCM_C=y CONFIG_MBEDTLS_RIPEMD160_C is not setCONFIG_MBEDTLS_PEM_PARSE_C=y CONFIG_util_assert is not setCONFIG_ESP_SHA is not setCONFIG_ESP_AES=y CONFIG_ENABLE_MDNS is not setCONFIG_MQTT_PROTOCOL_311=y CONFIG_MQTT_USE_CUSTOM_CONFIG is not setCONFIG_MQTT_TASK_CORE_SELECTION_ENABLED is not setCONFIG_MQTT_CUSTOM_OUTBOX is not setCONFIG_NEWLIB_STDOUT_LINE_ENDING_CRLF=y CONFIG_NEWLIB_STDOUT_LINE_ENDING_LF is not setCONFIG_NEWLIB_STDOUT_LINE_ENDING_CR is not setCONFIG_NEWLIB_NANO_FORMAT=y CONFIG_OPENSSL_DEBUG is not setCONFIG_OPENSSL_ASSERT_DO_NOTHING=y CONFIG_OPENSSL_ASSERT_EXIT is not setCONFIG_PTHREAD_TASK_PRIO_DEFAULT=5 CONFIG_SPIFFS_CACHE_STATS is not setCONFIG_SPIFFS_PAGE_CHECK=y CONFIG_SPIFFS_GC_STATS is not setCONFIG_SPIFFS_PAGE_SIZE=256 CONFIG_SPIFFS_DBG is not setCONFIG_SPIFFS_API_DBG is not setCONFIG_SPIFFS_GC_DBG is not setCONFIG_SPIFFS_CACHE_DBG is not setCONFIG_SPIFFS_CHECK_DBG is not setCONFIG_SPIFFS_TEST_VISUALISATION is not setCONFIG_IP_LOST_TIMER_INTERVAL=120 CONFIG_WL_SECTOR_SIZE_512 is not setCONFIG_WL_SECTOR_SIZE_4096=y CONFIG_ENABLE_UNIFIED_PROVISIONING is not setCONFIG_LTM_FAST=y CONFIG_WPA_DEBUG_PRINT is not setCONFIG_WPA_TESTING_OPTIONS is not setCONFIG_WPA_WPS_WARS is not setCONFIG_WPA_11KV_SUPPORT is not setDeprecated options for backward compatibilityCONFIG_TARGET_PLATFORM="esp8266" CONFIG_MAKE_WARN_UNDEFINED_VARIABLES is not setCONFIG_FLASHMODE_QIO=y CONFIG_FLASHMODE_QOUT is not setCONFIG_FLASHMODE_DIO is not setCONFIG_FLASHMODE_DOUT is not setCONFIG_MONITOR_BAUD_9600B is not setCONFIG_MONITOR_BAUD_57600B is not setCONFIG_MONITOR_BAUD_74880B=y CONFIG_MONITOR_BAUD_115200B is not setCONFIG_MONITOR_BAUD_230400B is not setCONFIG_MONITOR_BAUD_921600B is not setCONFIG_MONITOR_BAUD_2MB is not setCONFIG_MONITOR_BAUD_OTHER is not setCONFIG_MONITOR_BAUD_OTHER_VAL=74880 CONFIG_OPTIMIZATION_LEVEL_RELEASE is not setCONFIG_OPTIMIZATION_ASSERTIONS_ENABLED=y CONFIG_OPTIMIZATION_ASSERTIONS_SILENT is not setCONFIG_OPTIMIZATION_ASSERTIONS_DISABLED is not setCONFIG_CXX_EXCEPTIONS is not setCONFIG_STACK_CHECK_NONE=y CONFIG_STACK_CHECK_NORM is not setCONFIG_STACK_CHECK_STRONG is not setCONFIG_STACK_CHECK_ALL is not setCONFIG_STACK_CHECK is not setCONFIG_WARN_WRITE_STRINGS is not setCONFIG_MAIN_TASK_STACK_SIZE=3584 CONFIG_CONSOLE_UART_CUSTOM is not setCONFIG_CONSOLE_UART_NONE is not setCONFIG_CONSOLE_UART_NUM=0 CONFIG_UART0_SWAP_IO is not setCONFIG_TASK_WDT=y CONFIG_L2_TO_L3_COPY is not setCONFIG_USE_ONLY_LWIP_SELECT is not setCONFIG_ESP_GRATUITOUS_ARP=y CONFIG_ESP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES is not setCONFIG_TCP_OVERSIZE_MSS=y CONFIG_TCP_OVERSIZE_QUARTER_MSS is not setCONFIG_TCP_OVERSIZE_DISABLE is not setCONFIG_UDP_RECVMBOX_SIZE=6 CONFIG_TCPIP_TASK_AFFINITY_CPU0 is not setCONFIG_TCPIP_TASK_AFFINITY=0x7FFFFFFF CONFIG_PPP_SUPPORT is not setCONFIG_ESP32_PTHREAD_TASK_PRIO_DEFAULT=5 End of deprecated options` |
I notice that you have CONFIG_LOG_DEFAULT_LEVEL=3 in the menuconfig. Try setting the
This should do it! |
Nothing changed. CONFIG_LOG_DEFAULT_LEVEL_NONE=y I (5504) wifi:state: 0 -> 2 (b0) iot_sdk have a function for disable system logging system_set_os_print(bool enable_outpur) |
Very nice support from Espressif 👎 |
The code which does this, is located inside libnet80211.a . Well, i love reverse engineering. |
I've come up with a solution. The wi-fi code for some strange reason uses boot-time logging functions, which bypass all the common controls. Fortunately Espressif guys have hit this problem too, so they implemented an internal flag, which allows to suppress ets_printf() function. See here for details
I guess, the main question is: why is wi-fi daemon even using boot-time logger ? Looks like a bug. |
And yes, the only legitimate way to disable this is to set CONFIG_ESP_CONSOLE_UART_NONE , which would kill all the logs completely by turning uart_putc() into a NOP |
After commit 69cf000 my solution seems to stop working. Perhaps they switched to ets_vprintf(), which isn't suppressed at all @zhangyanjiaoesp Hello! Are you reading this ? I thought the project is dead in the water |
Unfortunately the solution employing an existing FlashIsOnGoing flag did not go well, because every NVS write clears it back to zero. I had to make my own: #1253 |
@donghengqaz @cwespressif Anyone ??? |
How to disable log output?
int log_handler(int ch) {
return 0;
}
void app_main() {
esp_log_set_putchar(log_handler);
esp_log_level_set("wifi", ESP_LOG_NONE);
Has no effect.
I (4238) wifi:state: 0 -> 2 (b0)
I (4285) wifi:state: 2 -> 3 (0)
I (4291) wifi:state: 3 -> 5 (10)
I (14290) wifi:state: 5 -> 0 (cc00)
I (16470) wifi:state: 0 -> 2 (b0)
I (16508) wifi:state: 2 -> 3 (0)
I (16514) wifi:state: 3 -> 5 (10)
I (16547) wifi:connected with ******, aid = 1, channel 6, HT20, bssid = ******
I (81655) wifi:bcn_timout,ap_probe_send_start
The text was updated successfully, but these errors were encountered: