From c6db3ea84cf862b9ce10887a4cd29c81e1d24c9c Mon Sep 17 00:00:00 2001 From: AndriiFilippov Date: Wed, 15 Feb 2023 15:41:46 +0100 Subject: [PATCH] unite all tags under common structure py test: update tags under common structure --- components/esp_websocket_client/esp_websocket_client.c | 2 +- .../examples/main/websocket_example.c | 10 +++++----- .../esp_websocket_client/examples/pytest_websocket.py | 4 ++-- components/mdns/mdns.c | 2 +- components/mdns/mdns_networking_lwip.c | 4 ++-- components/mdns/mdns_networking_socket.c | 2 +- components/mdns/tests/test_apps/main/main.c | 4 ++-- components/mdns/tests/test_apps/main/mdns_test.c | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/components/esp_websocket_client/esp_websocket_client.c b/components/esp_websocket_client/esp_websocket_client.c index af5e3fc1a..8ec3a2f26 100644 --- a/components/esp_websocket_client/esp_websocket_client.c +++ b/components/esp_websocket_client/esp_websocket_client.c @@ -20,7 +20,7 @@ #include "esp_timer.h" #include "esp_tls_crypto.h" -static const char *TAG = "WEBSOCKET_CLIENT"; +static const char *TAG = "websocket_client"; #define WEBSOCKET_TCP_DEFAULT_PORT (80) #define WEBSOCKET_SSL_DEFAULT_PORT (443) diff --git a/components/esp_websocket_client/examples/main/websocket_example.c b/components/esp_websocket_client/examples/main/websocket_example.c index 59ce0bd0b..5f413531b 100644 --- a/components/esp_websocket_client/examples/main/websocket_example.c +++ b/components/esp_websocket_client/examples/main/websocket_example.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ @@ -32,7 +32,7 @@ #define NO_DATA_TIMEOUT_SEC 5 -static const char *TAG = "WEBSOCKET"; +static const char *TAG = "websocket"; static TimerHandle_t shutdown_signal_timer; static SemaphoreHandle_t shutdown_sema; @@ -154,9 +154,9 @@ void app_main(void) ESP_LOGI(TAG, "[APP] Free memory: %d bytes", esp_get_free_heap_size()); ESP_LOGI(TAG, "[APP] IDF version: %s", esp_get_idf_version()); esp_log_level_set("*", ESP_LOG_INFO); - esp_log_level_set("WEBSOCKET_CLIENT", ESP_LOG_DEBUG); - esp_log_level_set("TRANSPORT_WS", ESP_LOG_DEBUG); - esp_log_level_set("TRANS_TCP", ESP_LOG_DEBUG); + esp_log_level_set("websocket_client", ESP_LOG_DEBUG); + esp_log_level_set("transport_ws", ESP_LOG_DEBUG); + esp_log_level_set("trans_tcp", ESP_LOG_DEBUG); ESP_ERROR_CHECK(nvs_flash_init()); ESP_ERROR_CHECK(esp_netif_init()); diff --git a/components/esp_websocket_client/examples/pytest_websocket.py b/components/esp_websocket_client/examples/pytest_websocket.py index a4b3baf7f..f01a5664e 100644 --- a/components/esp_websocket_client/examples/pytest_websocket.py +++ b/components/esp_websocket_client/examples/pytest_websocket.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Unlicense OR CC0-1.0 import json import random @@ -81,7 +81,7 @@ def test_examples_protocol_websocket(dut): def test_close(dut): code = dut.expect( re.compile( - b'WEBSOCKET: Received closed message with code=(\\d*)'))[0] + b'websocket: Received closed message with code=(\\d*)'))[0] print('Received close frame with code {}'.format(code)) def test_json(dut, websocket): diff --git a/components/mdns/mdns.c b/components/mdns/mdns.c index 8c10cb1a3..85f1bdf31 100644 --- a/components/mdns/mdns.c +++ b/components/mdns/mdns.c @@ -45,7 +45,7 @@ mdns_server_t *_mdns_server = NULL; static mdns_host_item_t *_mdns_host_list = NULL; static mdns_host_item_t _mdns_self_host; -static const char *TAG = "MDNS"; +static const char *TAG = "mdns"; static volatile TaskHandle_t _mdns_service_task_handle = NULL; static SemaphoreHandle_t _mdns_service_semaphore = NULL; diff --git a/components/mdns/mdns_networking_lwip.c b/components/mdns/mdns_networking_lwip.c index 05ddb4621..6e16809dd 100644 --- a/components/mdns/mdns_networking_lwip.c +++ b/components/mdns/mdns_networking_lwip.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -27,7 +27,7 @@ extern mdns_server_t *_mdns_server; * MDNS Server Networking * */ -static const char *TAG = "MDNS_Networking"; +static const char *TAG = "mdns_networking"; static struct udp_pcb *_pcb_main = NULL; diff --git a/components/mdns/mdns_networking_socket.c b/components/mdns/mdns_networking_socket.c index 66a38845b..d996b8442 100644 --- a/components/mdns/mdns_networking_socket.c +++ b/components/mdns/mdns_networking_socket.c @@ -29,7 +29,7 @@ extern mdns_server_t *_mdns_server; -static const char *TAG = "MDNS_Networking"; +static const char *TAG = "mdns_networking"; static bool s_run_sock_recv_task = false; static int create_socket(esp_netif_t *netif); static int join_mdns_multicast_group(int sock, esp_netif_t *netif, mdns_ip_protocol_t ip_protocol); diff --git a/components/mdns/tests/test_apps/main/main.c b/components/mdns/tests/test_apps/main/main.c index afda341e4..9fc136b61 100644 --- a/components/mdns/tests/test_apps/main/main.c +++ b/components/mdns/tests/test_apps/main/main.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -13,7 +13,7 @@ #include "protocol_examples_common.h" #include "mdns.h" -static const char *TAG = "MDNS_TEST"; +static const char *TAG = "mdns_test"; void mdns_test(char *line); static void get_string(char *line, size_t size) diff --git a/components/mdns/tests/test_apps/main/mdns_test.c b/components/mdns/tests/test_apps/main/mdns_test.c index 45137f328..06df424f8 100644 --- a/components/mdns/tests/test_apps/main/mdns_test.c +++ b/components/mdns/tests/test_apps/main/mdns_test.c @@ -10,7 +10,7 @@ #include "esp_log.h" #include "esp_netif.h" -static const char *TAG = "MDNS_TEST_APP"; +static const char *TAG = "mdns_test_app"; static const int RETRY_COUNT = 10; static void mdns_print_results(mdns_result_t *results)