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;