Updating error logging.