Skip to content

Commit 23ae477

Browse files
committed
add error info to log on failure
1 parent 2eeed4a commit 23ae477

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rabbit_worker.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ impl FunctionWorker {
116116

117117
let response = match result {
118118
Ok(_) => "okay",
119-
Err(_) => "error",
119+
Err(e) => {
120+
log::error!("{} failed: {:#?}", current_experience, e);
121+
"error"
122+
}
120123
};
121124

122125
// Send a response

0 commit comments

Comments
 (0)