Log errors as they arise