clean bad logs