2 Commits
Author SHA1 Message Date
Simonas Kazlauskas 3715c8744d log: add a missing newline 2026-01-08 13:20:11 +00:00
Simonas Kazlauskas 4e8a7d0d86 ringlog: make printing to stderr faster
I was trying to debug an issue I'm seeing with wezterm and figured I
would try to use the terminal for my day-to-day with trace logds enabled
while I try to figure it out.

Unfortunately it turned out to be disruptive enough to make the terminal
almost unusable. I narrowed at least *that* part down to the fact that
printing out each log message would result in about screenful worth of
`write(2)` syscalls, many of them printing just one space character each
(padding? debug structure identation?)

Although it would be ideal to use a line-based buffered writer here,
pre-formatting the log string to a String before printing seemed like a
straightforward quick solution and it works amazingly well!
2026-01-08 12:35:44 +00:00