Skip to content

Commit 73736fd

Browse files
lmamminocalavera
andauthored
Update lib.rs: Response vs Request in trace! log (#809)
* Update lib.rs: Response vs Request in trace! log * Update lambda-runtime/src/lib.rs Co-authored-by: David Calavera <david.calavera@gmail.com> --------- Co-authored-by: David Calavera <david.calavera@gmail.com>
1 parent 09819be commit 73736fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambda-runtime/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl Runtime {
126126
// Group the handling in one future and instrument it with the span
127127
async {
128128
let body = body.collect().await?.to_bytes();
129-
trace!("response body - {}", std::str::from_utf8(&body)?);
129+
trace!(body = std::str::from_utf8(&body)?, "raw JSON event received from Lambda");
130130

131131
#[cfg(debug_assertions)]
132132
if parts.status.is_server_error() {

0 commit comments

Comments
 (0)