Fix oserror on netid logging