removes unnecessary logging of error