Removing logs and warnings at the same time