Fix warning vs errors logging.