QueueEntry{InitialMetadataType{std::move(metadata)}}, /*tokens=*/0);
if (GPR_UNLIKELY(!result.ok())) {
GRPC_STREAM_DATA_QUEUE_DEBUG
- << "Immediate enqueueing initial metadata for stream " << stream_id_
- << " failed with status: " << result.status();
+ << "Immediate enqueueing initial metadata failed with status: "
+ << result.status();
return result.status();
}
return UpdateWritableStateAndPriorityEnqueueLocked(
GRPC_DCHECK(!is_trailing_metadata_or_half_close_queued_);
if (GPR_UNLIKELY(IsEnqueueClosed())) {
- GRPC_STREAM_DATA_QUEUE_DEBUG << "Enqueue closed for stream "
- << stream_id_;
+ GRPC_STREAM_DATA_QUEUE_DEBUG << "Enqueue closed.";
return EnqueueResult{/*became_writable=*/false,
WritableStreamPriority::kStreamClosed};
}
QueueEntry{TrailingMetadataType{std::move(metadata)}}, /*tokens=*/0);
if (GPR_UNLIKELY(!result.ok())) {
GRPC_STREAM_DATA_QUEUE_DEBUG
- << "Immediate enqueueing trailing metadata for stream " << stream_id_
- << " failed with status: " << result.status();
+ << "Immediate enqueueing trailing metadata failed with status: "
+ << result.status();
return result.status();
}
return UpdateWritableStateAndPriorityEnqueueLocked(
tokens]() mutable -> Poll<absl::StatusOr<EnqueueResult>> {
MutexLock lock(&self->mu_);
if (GPR_UNLIKELY(self->IsEnqueueClosed())) {
- GRPC_STREAM_DATA_QUEUE_DEBUG << "Enqueue closed for stream "
- << self->stream_id_;
+ GRPC_STREAM_DATA_QUEUE_DEBUG << "Enqueue closed";
return EnqueueResult{/*became_writable=*/false,
WritableStreamPriority::kStreamClosed};
}
Poll<bool> result = self->queue_.Enqueue(entry, tokens);
if (result.ready()) {
- GRPC_STREAM_DATA_QUEUE_DEBUG << "Enqueued message for stream "
- << self->stream_id_
- << " with tokens: " << tokens
- << "became_non_empty: " << result.value();
+ GRPC_STREAM_DATA_QUEUE_DEBUG
+ << "Enqueued message with tokens: " << tokens
+ << "became_non_empty: " << result.value();
return self->UpdateWritableStateAndPriorityEnqueueLocked(
/*became_non_empty=*/result.value(),
if (GPR_UNLIKELY(IsEnqueueClosed() ||
is_trailing_metadata_or_half_close_queued_)) {
GRPC_STREAM_DATA_QUEUE_DEBUG
- << "Enqueue closed or trailing metadata/half close queued for stream "
- << stream_id_ << " is_trailing_metadata_or_half_close_queued_ = "
+ << "Enqueue closed or trailing metadata/half close queued "
+ << " is_trailing_metadata_or_half_close_queued_ = "
<< is_trailing_metadata_or_half_close_queued_;
return EnqueueResult{/*became_writable=*/false,
WritableStreamPriority::kStreamClosed};
queue_.ImmediateEnqueue(QueueEntry{HalfClosed{}}, /*tokens=*/0);
if (GPR_UNLIKELY(!result.ok())) {
GRPC_STREAM_DATA_QUEUE_DEBUG
- << "Immediate enqueueing half closed for stream " << stream_id_
- << " failed with status: " << result.status();
+ << "Immediate enqueueing half closed failed with status: "
+ << result.status();
return result.status();
}
return UpdateWritableStateAndPriorityEnqueueLocked(
// This can happen when the transport tries to close the stream and the
// stream is cancelled from the call stack.
if (GPR_UNLIKELY(IsEnqueueClosed())) {
- GRPC_STREAM_DATA_QUEUE_DEBUG << "Enqueue closed for stream "
- << stream_id_;
+ GRPC_STREAM_DATA_QUEUE_DEBUG << "Enqueue closed";
return EnqueueResult{/*became_writable=*/false,
WritableStreamPriority::kStreamClosed};
}
GRPC_STREAM_DATA_QUEUE_DEBUG
- << "Immediate enqueueing reset stream for stream " << stream_id_
- << " with error code: " << error_code;
+ << "Immediate enqueueing reset stream with error code: " << error_code;
reset_stream_state_ = RstStreamState::kQueued;
reset_stream_error_code_ = error_code;
const bool can_send_reset_stream) {
MutexLock lock(&mu_);
GRPC_STREAM_DATA_QUEUE_DEBUG
- << "Dequeueing frames for stream " << stream_id_
- << " Max fc tokens: " << max_fc_tokens
+ << "Dequeueing frames. Max fc tokens: " << max_fc_tokens
<< " Max frame length: " << max_frame_length
<< " Message disassembler buffered length: "
<< message_disassembler_.GetBufferedLength()
bool ReceivedFlowControlWindowUpdate(const uint32_t stream_fc_tokens) {
MutexLock lock(&mu_);
GRPC_STREAM_DATA_QUEUE_DEBUG
- << "Received flow control window update for stream " << stream_id_
- << " stream_fc_tokens: " << stream_fc_tokens;
+ << "Received flow control window update. stream_fc_tokens: "
+ << stream_fc_tokens;
return UpdateWritableStateDequeueLocked(stream_fc_tokens);
}
if (!is_writable_ && became_non_empty) {
is_writable_ = true;
GRPC_STREAM_DATA_QUEUE_DEBUG
- << "UpdateWritableStateLocked for stream id: " << stream_id_
- << " became writable with priority: "
+ << "UpdateWritableStateLocked became writable with priority: "
<< GetWritableStreamPriorityString(priority_);
return EnqueueResult{/*became_writable=*/true, priority_};
}
GRPC_STREAM_DATA_QUEUE_DEBUG
- << "UpdateWritableStateAndPriorityEnqueueLocked for stream id: "
- << stream_id_
- << " with priority: " << GetWritableStreamPriorityString(priority_)
+ << "UpdateWritableStateAndPriorityEnqueueLocked with priority: "
+ << GetWritableStreamPriorityString(priority_)
<< " is_writable: " << is_writable_;
return EnqueueResult{/*became_writable=*/false, priority_};
}
is_writable_ = (available_stream_fc_tokens > 0);
}
- GRPC_STREAM_DATA_QUEUE_DEBUG
- << "UpdateWritableStateLocked for stream id: " << stream_id_
- << " with priority: " << GetWritableStreamPriorityString(priority_)
- << " is_writable: " << is_writable_;
+ GRPC_STREAM_DATA_QUEUE_DEBUG << "UpdateWritableStateLocked with priority: "
+ << GetWritableStreamPriorityString(priority_)
+ << " is_writable: " << is_writable_;
return is_writable_;
}
switch (reset_stream_state_) {
case RstStreamState::kDequeued:
GRPC_STREAM_DATA_QUEUE_DEBUG
- << "Reset stream is already dequeued for stream " << stream_id_
- << ". Returning empty frames.";
+ << "Reset stream is already dequeued. Returning empty frames.";
GRPC_DCHECK(queue_.IsEmpty());
is_writable_ = false;
return DequeueResult{
case RstStreamState::kQueued: {
GRPC_STREAM_DATA_QUEUE_DEBUG
<< "Reset stream is queued. Skipping all frames (if any) for "
- "dequeuing "
- << stream_id_;
+ "dequeuing.";
is_writable_ = false;
std::vector<Http2Frame> frames;
uint8_t flags = 0u;
case RstStreamState::kDequeued:
// This can happen when the transport tries to close the stream and the
// stream is cancelled from the call stack.
- GRPC_STREAM_DATA_QUEUE_DEBUG
- << "Reset stream already queued for stream " << stream_id_;
+ GRPC_STREAM_DATA_QUEUE_DEBUG << "Reset stream already queued.";
return true;
default:
GRPC_CHECK(false) << "Invalid reset stream state: "