From 2dd8f60cd6498000a038b0a2649dfcc13cc188f4 Mon Sep 17 00:00:00 2001 From: Ben Nicholson Date: Fri, 25 Sep 2026 07:10:24 +1000 Subject: [PATCH] Web: keep httpd warnings out of the log httpd_txrx warned on every client reset (errno 104) and httpd_uri on every 404 (the UI polls /api/player every 2 s until step 7), flooding syslog. Both set to error level; our handlers log the 4xx that matter. Remaining known line: 'httpd_resp_send_err: error calling setsockopt : 22' (error level) when a client closes right after a 4xx; a harmless race in IDF's CONFIG_HTTPD_ERR_RESP_NO_DELAY handling, the response is already delivered. Verified via syslog: 10 status + 10 /api/player requests, no httpd lines. Co-Authored-By: Claude Opus 5.5 --- components/aes67_web/aes67_web.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/aes67_web/aes67_web.c b/components/aes67_web/aes67_web.c index b7be0d4..5219038 100644 --- a/components/aes67_web/aes67_web.c +++ b/components/aes67_web/aes67_web.c @@ -104,6 +104,11 @@ esp_err_t aes67_web_start(void) return err; } + // httpd warns on every client reset (errno 104) and every 404 (e.g. UI polling a route the + // firmware doesn't have yet): noise in syslog. Our handlers log the 4xx cases that matter. + esp_log_level_set("httpd_txrx", ESP_LOG_ERROR); + esp_log_level_set("httpd_uri", ESP_LOG_ERROR); + httpd_config_t cfg = HTTPD_DEFAULT_CONFIG(); cfg.max_uri_handlers = MAX_URIS; cfg.stack_size = 8192;