log: add log query API endpoints and display logs on web interface
All checks were successful
Build ESP32 BMC Firmware / build (push) Successful in 53s

This commit is contained in:
2026-03-12 16:20:01 +01:00
parent ccf4569969
commit 6e88ce1137
7 changed files with 316 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
#include "ethernet_manager.h"
#include "web_server.h"
#include "ota_handler.h"
#include "log_handler.h"
static const char *TAG = TAG_BMC;
@@ -41,9 +42,17 @@ void app_main(void) {
ESP_LOGI(TAG, "ESP32-S3 BMC Firmware Starting...");
ESP_LOGI(TAG, "========================================");
// Initialize log handler first to capture all logs
ESP_LOGI(TAG, "Initializing log handler...");
esp_err_t ret = log_handler_init();
if (ret != ESP_OK) {
ESP_LOGW(TAG, "Failed to initialize log handler: %s", esp_err_to_name(ret));
// Continue anyway - log capture is optional
}
// Initialize GPIO controller
ESP_LOGI(TAG, "Initializing GPIO controller...");
esp_err_t ret = gpio_controller_init();
ret = gpio_controller_init();
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to initialize GPIO controller: %s", esp_err_to_name(ret));
// Continue anyway - some GPIOs might still work