Skip to content

Commit

Permalink
TO REMOVE: print create_table catalog request json
Browse files Browse the repository at this point in the history
  • Loading branch information
ztlpn committed Jan 20, 2025
1 parent 99fef8a commit 0f7c015
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/v/iceberg/rest_client/catalog_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "http/request_builder.h"
#include "http/utils.h"
#include "iceberg/json_writer.h"
#include "iceberg/logger.h"
#include "iceberg/rest_client/entities.h"
#include "iceberg/rest_client/json.h"
#include "iceberg/table_requests_json.h"
Expand Down Expand Up @@ -216,6 +217,13 @@ ss::future<expected<load_table_result>> catalog_client::create_table(
.with_bearer_auth(token.value())
.with_content_type(json_content_type);

auto json_buf = serialize_payload_as_json(req);
ss::sstring json_str;
for (const auto& frag : json_buf) {
json_str.append(frag.get(), frag.size());
}
vlog(log.info, "FFF {}", json_str);

co_return (co_await perform_request(
rtc, http_request, serialize_payload_as_json(req)))
.and_then(parse_json)
Expand Down

0 comments on commit 0f7c015

Please sign in to comment.