Prevent logging errors.