helix icon indicating copy to clipboard operation
helix copied to clipboard

add config option to disable log

Open ChemicalXandco opened this issue 3 years ago • 2 comments

Appending to the log file can cause write amplification on SSDs causing lots of unnecessary wear so I propose adding a configuration entry to disable it. The proposed changes do not change the current behaviour by default however it might be beneficial to turn it off by default and only turn it on when trying to diagnose a problem.

ChemicalXandco avatar Sep 10 '22 12:09 ChemicalXandco

SSDs causing lots of unnecessary wear

Try looking at all the temporary files continually written by browsers :)

Users can already stop/reduce logging by raising the log level. We currently only log errors for easier debugging (otherwise we'd have to continuously teach new users how to enable logs). The LSP was a bit noisy and would log an error if no LSP was defined but that was fixed on master.

archseer avatar Sep 10 '22 16:09 archseer

Now that #3807 is merged, you can use hx --log /dev/null

the-mikedavis avatar Oct 13 '22 16:10 the-mikedavis

We've further reduced logging of the really noisy stuff (https://github.com/helix-editor/helix/commit/83f09ecbff5160e4350c8099be1ad4c64513f665, https://github.com/helix-editor/helix/commit/6bfe1ddc53f542d62e242fd4aaf6748dda1b0e71) and there are workarounds now with the --log flag as mentioned above so I will close this out

the-mikedavis avatar Feb 10 '24 17:02 the-mikedavis