cleaning error logs