All logs get deleted constantly
-
Hi π,
I’ve had an issue with the logs getting deleted very quickly instead of being stored for 7 days as expected so I looked into the issue and it turns out the culprit is the pm_clear_old_logs() function which when querying the databases compares the date column,
log_entry_datewithUNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL %d DAY)).But
log_entry_dateis DATETIME, not a unix timestamp so as a result everything gets deleted everytime. ReplacingUNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL %d DAY))withDATE_SUB(NOW(), INTERVAL %d DAY)fixes the issue.Would be amazing if you could get this fixed in the next update,
Thanks!
The topic ‘All logs get deleted constantly’ is closed to new replies.