Skip to content

Commit e688dd4

Browse files
fix: Log error on failure (#47)
1 parent 3028c62 commit e688dd4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: proxy/src/proxy.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ async fn handle(
126126
.metrics
127127
.count_http_total_request(&proxy_req, response.status());
128128
}
129-
Err(_) => todo!("send error to prometheus"),
129+
Err(err) => {
130+
error!(error = err.to_string(), "Failed to handle request");
131+
todo!("send error to prometheus");
132+
}
130133
};
131134

132135
response_result

0 commit comments

Comments
 (0)