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 <noreply@anthropic.com>
This commit is contained in:
@@ -104,6 +104,11 @@ esp_err_t aes67_web_start(void)
|
|||||||
return err;
|
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();
|
httpd_config_t cfg = HTTPD_DEFAULT_CONFIG();
|
||||||
cfg.max_uri_handlers = MAX_URIS;
|
cfg.max_uri_handlers = MAX_URIS;
|
||||||
cfg.stack_size = 8192;
|
cfg.stack_size = 8192;
|
||||||
|
|||||||
Reference in New Issue
Block a user