Removed error logging call