Skip to content

Commit c783652

Browse files
add more explicit logging (hyperium#1658)
Co-authored-by: tottoto <tottotodev@gmail.com>
1 parent d9fa673 commit c783652

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tonic/src/codec/decode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl StreamingInner {
183183
return Err(Status::new(
184184
Code::OutOfRange,
185185
format!(
186-
"Error, message length too large: found {} bytes, the limit is: {} bytes",
186+
"Error, decoded message length too large: found {} bytes, the limit is: {} bytes",
187187
len, limit
188188
),
189189
));

tonic/src/codec/encode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ fn finish_encoding(
229229
return Err(Status::new(
230230
Code::OutOfRange,
231231
format!(
232-
"Error, message length too large: found {} bytes, the limit is: {} bytes",
232+
"Error, encoded message length too large: found {} bytes, the limit is: {} bytes",
233233
len, limit
234234
),
235235
));

tonic/src/codec/prost.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ mod tests {
211211
let expected = Status::new(
212212
Code::OutOfRange,
213213
format!(
214-
"Error, message length too large: found {} bytes, the limit is: {} bytes",
214+
"Error, decoded message length too large: found {} bytes, the limit is: {} bytes",
215215
msg.len(),
216216
MAX_MESSAGE_SIZE
217217
),

0 commit comments

Comments
 (0)