logger icon indicating copy to clipboard operation
logger copied to clipboard

Fastlogger OOM's when setting log_backup_number to maxBound on logfile rotation

Open jappeace opened this issue 11 months ago • 1 comments

Recently keter was moved over to fastlogger, we set the LogFile limit conservatively to maxInt to make sure it doesn't lose information.

https://github.com/snoyberg/keter/blob/28ba9b538b9e3850922c5e59a8e3038425a11f9a/src/Keter/Logger.hs#L51

Now we got a bugreport that it crashes on any rotation. https://github.com/snoyberg/keter/issues/288

I'll work around this by setting it to 20.

jappeace avatar Mar 07 '24 13:03 jappeace

I can remove reverse from rotate but n must not be huge anyway.

kazu-yamamoto avatar Apr 25 '24 01:04 kazu-yamamoto