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

pull/36879/head
tanvi-jagtap 9 months ago
parent e8a994f7d1
commit 04c932ab9c
  1. 12
      test/core/iomgr/fd_posix_test.cc

@ -164,8 +164,7 @@ static void session_read_cb(void* arg, // session
// before notify_on_read is called.
grpc_fd_notify_on_read(se->em_fd, &se->session_read_closure);
} else {
grpc_core::Crash(absl::StrFormat("Unhandled read error %s",
grpc_core::StrError(errno).c_str()));
LOG(FATAL) << "Unhandled read error " << grpc_core::StrError(errno);
}
}
}
@ -330,8 +329,7 @@ static void client_session_write(void* arg, // client
}
gpr_mu_unlock(g_mu);
} else {
grpc_core::Crash(absl::StrFormat("unknown errno %s",
grpc_core::StrError(errno).c_str()));
LOG(FATAL) << "unknown errno " << grpc_core::StrError(errno).c_str();
}
}
@ -348,12 +346,10 @@ static void client_start(client* cl, int port) {
pfd.events = POLLOUT;
pfd.revents = 0;
if (poll(&pfd, 1, -1) == -1) {
LOG(ERROR) << "poll() failed during connect; errno=" << errno;
abort();
LOG(FATAL) << "poll() failed during connect; errno=" << errno;
}
} else {
grpc_core::Crash(
absl::StrFormat("Failed to connect to the server (errno=%d)", errno));
LOG(FATAL) << "Failed to connect to the server (errno=" << errno;
}
}

Loading…
Cancel
Save