error log cleanup