[grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log

pull/36678/head
tanvi-jagtap 10 months ago
parent c4f13e12cb
commit 81b8f4179f
  1. 3
      test/cpp/interop/xds_interop_server_lib.cc
  2. 4
      test/cpp/qps/parse_json.cc
  3. 6
      test/cpp/qps/server_async.cc

@ -201,8 +201,7 @@ absl::optional<grpc::Status> GetStatusForRpcBehaviorMetadata(
}
if (part != hostname) {
VLOG(2) << "RPC behavior for a different host: \"" << std::string(part)
<< "\", this one is: \"" < < <
hostname < "\"";
<< "\", this one is: \"" << hostname << "\"";
return absl::nullopt;
}
} else if (absl::ConsumePrefix(&part, kErrorCodeRpcBehavior)) {

@ -39,8 +39,8 @@ void ParseJson(const std::string& json, const std::string& type,
type_resolver.get(), "type.googleapis.com/" + type, json, &binary);
if (!status.ok()) {
std::string errmsg(status.message());
LOG(ERROR) << "Failed to convert json to binary: errcode="
<< static_cast<int>(status.code()) << " msg=" << errmsg;
LOG(ERROR) << "Failed to convert json to binary: errcode=" << status.code()
<< " msg=" << errmsg;
grpc_core::Crash(absl::StrFormat("JSON: %s", json.c_str()));
}
CHECK(msg->ParseFromString(binary));

@ -93,10 +93,8 @@ class AsyncQpsServerTest final : public grpc::testing::Server {
if (num_threads <= 0) { // dynamic sizing
num_threads = std::min(64, cores());
LOG(INFO) << "Sizing async server to " << num_threads
<< " threads. Defaults to number of cores "
"in machine or 64 threads if machine has more than 64 cores "
"to "
"avoid OOMs.";
<< " threads. Defaults to number of cores in machine or 64 "
"threads if machine has more than 64 cores to avoid OOMs.";
}
int tpc = std::max(1, config.threads_per_cq()); // 1 if unspecified

Loading…
Cancel
Save