Skip to content

Commit e352005

Browse files
authored
fix(logs): stop logging payload on debug (#1037)
## Overview Removes logging payload on debug
1 parent 3b533a0 commit e352005

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bottlecap/src/lifecycle/listener.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,7 @@ impl Listener {
192192
payload_value: Value,
193193
invocation_processor_handle: InvocationProcessorHandle,
194194
) {
195-
debug!(
196-
"Received start invocation request from headers:{headers:?}, payload_value:{payload_value:?}"
197-
);
195+
debug!("Received start invocation request from headers:{headers:?}");
198196

199197
let request_id = extract_request_id_from_headers(&headers);
200198

@@ -254,9 +252,7 @@ impl Listener {
254252
let headers = headers_to_map(headers);
255253
let payload_value = serde_json::from_slice::<Value>(&body).unwrap_or_else(|_| json!({}));
256254

257-
debug!(
258-
"Received end invocation request from headers:{headers:?}, payload_value:{payload_value:?}"
259-
);
255+
debug!("Received end invocation request from headers:{headers:?}");
260256
let request_id = extract_request_id_from_headers(&headers);
261257

262258
if let Err(e) = invocation_processor_handle

0 commit comments

Comments
 (0)