sunrisecc Posted October 6, 2006 Posted October 6, 2006 Assuming I leave the task of pruning logs to run once a month, does it remove all entries in a log over x days? If so, where does one set x?Or does the task just empty the log when run?
bfarber Posted October 6, 2006 Posted October 6, 2006 You configure which logs you want pruned in the settings under the 'Log Pruning' group.The task will run and truncate (clear out) the log tables you have configured to allow. By default, none of the tables will be pruned (as we didn't want to set this up arbitrarily for a user, and wipe out data they want preserved), but you can go into the log pruning group and select which tables to clear every x days.
sunrisecc Posted October 6, 2006 Posted October 6, 2006 Brandon:I am aware that one can select which logs to be pruned. On a test board, I sent myself mail generating an entry in the email log. Then I turned on the email log pruning in the task settings and ran the prune task manually.The entry was not removed. Therefore I believe it will do only entries over 30 days (30 days being the default). The task did not empty the log.My question is: Is the default 30 days dependent on how ofdten the task runs?If not, where does one alter the default 30 days?
bfarber Posted October 6, 2006 Posted October 6, 2006 Hello,The line "default 30 days" refers to the task being run, yes.Manually running the task should override any date frame settings.So, the table should have been pruned (in the task .php file, it just does do_delete on the table, it does not filter by any date ranges, etc.). I'd report it to the bug tracker, however I cannot currently duplicate the issue locally. Just provide the steps you took and I'll see if I can reproduce it.
sunrisecc Posted October 6, 2006 Posted October 6, 2006 #1 - I sent myself an email to generate a log entry in the email log (worked)#2 - I altered the setting to Prune Email Logs = Yes in Prune Logs settings#3 - I maually ran the task of Prune Logs in the task Manager #4 - I returned to check the emails logs and my entry was still there from #1.I repeated this process twice.
sunrisecc Posted October 6, 2006 Posted October 6, 2006 Brandon:I did the same test on Moderator logs after creating an entry in the moderator logs via closing a topic. Worked as advertised.Only fails on email logs.I will create a bug report.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.