Skip to content

Commit

Permalink
add more explicit logging (#1658)
Browse files Browse the repository at this point in the history
Co-authored-by: tottoto <tottotodev@gmail.com>
  • Loading branch information
jasonwbarnett and tottoto committed Jun 2, 2024
1 parent d9fa673 commit c783652
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tonic/src/codec/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl StreamingInner {
return Err(Status::new(
Code::OutOfRange,
format!(
"Error, message length too large: found {} bytes, the limit is: {} bytes",
"Error, decoded message length too large: found {} bytes, the limit is: {} bytes",
len, limit
),
));
Expand Down
2 changes: 1 addition & 1 deletion tonic/src/codec/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ fn finish_encoding(
return Err(Status::new(
Code::OutOfRange,
format!(
"Error, message length too large: found {} bytes, the limit is: {} bytes",
"Error, encoded message length too large: found {} bytes, the limit is: {} bytes",
len, limit
),
));
Expand Down
2 changes: 1 addition & 1 deletion tonic/src/codec/prost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ mod tests {
let expected = Status::new(
Code::OutOfRange,
format!(
"Error, message length too large: found {} bytes, the limit is: {} bytes",
"Error, decoded message length too large: found {} bytes, the limit is: {} bytes",
msg.len(),
MAX_MESSAGE_SIZE
),
Expand Down

0 comments on commit c783652

Please sign in to comment.