From 584618043da21a831f9b9427d7712fabc0ed4b7d Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Wed, 28 Jan 2026 15:01:15 +0100 Subject: [PATCH] weblog buffer max 1000 messages with psram, syslog buffer 250 with psram --- interface/src/app/status/SystemLog.tsx | 4 +++- src/core/system.cpp | 2 +- src/web/WebSettingsService.h | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/interface/src/app/status/SystemLog.tsx b/interface/src/app/status/SystemLog.tsx index 84663c19d..0854c8cc4 100644 --- a/interface/src/app/status/SystemLog.tsx +++ b/interface/src/app/status/SystemLog.tsx @@ -38,7 +38,7 @@ import type { LogEntry, LogSettings } from 'types'; import { LogLevel } from 'types'; import { updateValueDirty, useRest } from 'utils'; -const MAX_LOG_ENTRIES = 1000; // Limit log entries to prevent memory issues +const MAX_LOG_ENTRIES = 10000; // Limit log entries to prevent memory issues const TextColors: Record = { [LogLevel.ERROR]: '#ff0000', // red @@ -308,6 +308,8 @@ const SystemLog = () => { 50 75 100 + 500 + 1000 )} diff --git a/src/core/system.cpp b/src/core/system.cpp index d031a05f2..82d52696b 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -501,7 +501,7 @@ void System::syslog_init() { #ifndef EMSESP_STANDALONE if (syslog_enabled_) { // start & configure syslog - syslog_.maximum_log_messages(10); + syslog_.maximum_log_messages(psram_ ? 250 : 10); syslog_.log_level((uuid::log::Level)syslog_level_); syslog_.mark_interval(syslog_mark_interval_); syslog_.destination(syslog_host_.c_str(), syslog_port_); diff --git a/src/web/WebSettingsService.h b/src/web/WebSettingsService.h index 54f740de8..8ad076ab4 100644 --- a/src/web/WebSettingsService.h +++ b/src/web/WebSettingsService.h @@ -67,9 +67,9 @@ class WebSettings { uint8_t bool_dashboard; uint8_t enum_format; - int8_t weblog_level; - uint8_t weblog_buffer; - bool weblog_compact; + int8_t weblog_level; + uint16_t weblog_buffer; + bool weblog_compact; bool fahrenheit;