Fix warning in log.