Skip to content

Commit 6a25fec

Browse files
committed
Ensure output text is truncated in mid-stream failure error message
1 parent 0c9fd6a commit 6a25fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router/src/grpc_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl GenerationService for GenerationServicer {
212212
if let Some(e) = err {
213213
metrics::increment_counter!("tgi_request_failure", "err" => "generate");
214214
tracing::error!("Streaming response failed after {count} tokens, \
215-
output so far: '{out}': {e}");
215+
output so far: '{:?}': {e}", truncate(&out, 32));
216216
} else {
217217
log_response(
218218
&times, ctx.input_token_count, count,

0 commit comments

Comments
 (0)