private void updateQueryLog() {
      try {
        List<String> queryLogs = hiveStatement.getQueryLog();
        for (String log : queryLogs) {
          if (!commands.beeLine.isTestMode()) {
            commands.beeLine.info(log);
          } else {
            // In test mode print the logs to the output
            commands.beeLine.output(log);
          }
        }
        if (!queryLogs.isEmpty()) {
          notifier.operationLogShowedToUser();
        }
      } catch (SQLException e) {
        commands.error(new SQLWarning(e));
      }
    }
Given a cmdpart (e.g. if a command spans multiple lines), add to the current command, and if
applicable add that command to the {@link List} of commands
beeline/src/java/org/apache/hive/beeline/Commands.java