Reduce helix.log max size #10377
-
SummaryHelix looks like it never trims it log files. As such, on 1 machine I had over an 100GB log file. On my other machine here, I have a 22GB log file. Maybe I missed a config option to deal with this. That said, even if I did, there should be a better default. Reproduction StepsUse helix with various lsps. It will log issues. Logs never get cleared and add up to gigabytes of data. I expected this to happen: Instead, this happened: Helix logThis is a small snippet from my linux box. Mostly rust analyzer issues it seems. ~/.cache/helix/helix.log
On my macos box it is a similar story. Tons of messages from clangd and tablegen. PlatformLinux and Macos Terminal Emulatorkitty 0.33.1 Installation Methodbrew and source Helix Versionhelix 24.3 (2cadec0) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
I'm pretty sure this is not something the maintainers want and it's been rejected in the past. Not much is logged by default at this point so usually it never goes over a couple of megabytes (IIRC). The issue in this case seems to be that you enabled logging on |
Beta Was this translation helpful? Give feedback.
Ah, actually there is a way to disable it. You can specify the log path
hx --logfile /dev/null
#3807