-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB logs should have a max-age setting to prevent bloating table size #1494
Comments
|
👍 I just manually freed up 10GB in a database by clearing the logs. Would really appreciate an automated option. |
+1-ing this, came up in one of our projects as well (though not in the realms of 10GB+, that's wild). Also I was thinking, why should the logs be saved into the database at all, when there is an established structure with log files being stored in (Edit: I'm now aware that this is configurable, might be interesting to some: https://github.com/craftcms/feed-me/blob/5.9.0/README.md#customizing-logs) |
I'm realizing now that the logs UI (which is sole reason for the DB logs) doesn't currently have pagination and has a hard-coded limit of 300. Does that seem reasonable to those having trouble with this? @frank-laemmer @ul8 @mnlmaier |
Same - it's old, legacy behavior that we'll be happy to get rid of for the next major version. |
#1594 has been released with Feed Me 5.10.0 and 6.7.0. Note: logs still always going to standard logging (with a |
Description
File-based logs have rotation, but with the move to db logs, we should have a way to automatically limit the size of that table.
The idea is to add a
maxLogAge
:feed-me/logs/clear
#1487 (comment)
The text was updated successfully, but these errors were encountered: