docs: private String subQuery(ByteBuffer buffer) {
      String queryString;
      if (options.maxQuerySizeToLog == 0) {
        queryString = new String(buffer.array(), 5, buffer.limit());
      } else {
        queryString = new String(buffer.array(), 5,
            Math.min(buffer.limit() - 5, (options.maxQuerySizeToLog * 3)));
        if (queryString.length() > options.maxQuerySizeToLog - 3) {
          queryString = queryString.substring(0, options.maxQuerySizeToLog - 3) + "...";
        }
      }
      return queryString;
    }