Skip to content

Commit

Permalink
[shutdown] Guard log with TraceFlag
Browse files Browse the repository at this point in the history
  • Loading branch information
yashykt committed Feb 7, 2025
1 parent e06ad82 commit 4ac55dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/lib/surface/init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ bool grpc_wait_for_shutdown_with_timeout(absl::Duration timeout) {
grpc_core::MutexLock lock(g_init_mu);
while (g_initializations != 0) {
if (g_shutting_down_cv->WaitWithDeadline(g_init_mu, deadline)) {
LOG(ERROR) << "grpc_wait_for_shutdown_with_timeout() timed out.";
GRPC_TRACE_LOG(api, ERROR)
<< "grpc_wait_for_shutdown_with_timeout() timed out.";
return false;
}
}
Expand Down

0 comments on commit 4ac55dd

Please sign in to comment.