Skip to content

Commit c6b816a

Browse files
mairasclaude
andcommitted
fix(log): raise web log line cap to 256 to match the capture buffer
The vprintf trampoline already captures into a 256-byte buffer, but push_line re-truncated to max_line_length=128, clipping any log line past 128 chars in the web log viewer (only visible once the viewer started parsing again). Raise the default to 256 so the buffered copy keeps what was already captured; the 2-second age window bounds retained volume, so the added worst-case RAM is small. Lines longer than the 256-byte capture buffer still clip. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9313e9f commit c6b816a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sensesp/system/log_buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct LogSnapshot {
5959
class LogBuffer {
6060
public:
6161
explicit LogBuffer(size_t max_lines = 200, uint32_t max_age_ms = 2000,
62-
size_t max_line_length = 128);
62+
size_t max_line_length = 256);
6363

6464
/**
6565
* @brief Install the chained vprintf hook. Call once, early in startup.

0 commit comments

Comments
 (0)