Log the exception if a tuple query fails