kazu-yamamoto / logger

A fast logging system for Haskell
159 stars 68 forks source link

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

Open jappeace opened 7 months ago

jappeace commented 7 months ago

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.

kazu-yamamoto commented 6 months ago

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