Skip to content

Commit d56e44e

Browse files
authored
debug log error for reports (#490)
1 parent 1357155 commit d56e44e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

bottlecap/src/bin/bottlecap/main.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,12 @@ async fn extension_loop_active(
432432
request_id,
433433
status,
434434
metrics,
435+
error_type,
435436
..
436437
} => {
437438
debug!(
438-
"Runtime done for request_id: {:?} with status: {:?}",
439-
request_id, status
439+
"Runtime done for request_id: {:?} with status: {:?} and error: {:?}",
440+
request_id, status, error_type.unwrap_or("None".to_string())
440441
);
441442

442443
let mut p = invocation_processor.lock().await;
@@ -474,11 +475,12 @@ async fn extension_loop_active(
474475
request_id,
475476
status,
476477
metrics,
478+
error_type,
477479
..
478480
} => {
479481
debug!(
480-
"Platform report for request_id: {:?} with status: {:?}",
481-
request_id, status
482+
"Platform report for request_id: {:?} with status: {:?} and error: {:?}",
483+
request_id, status, error_type.unwrap_or("None".to_string())
482484
);
483485
let mut p = invocation_processor.lock().await;
484486
p.on_platform_report(&request_id, metrics);

0 commit comments

Comments
 (0)