Skip to content

Commit 0b514c3

Browse files
committed
Add request logging for more handlers
1 parent 29aa2cb commit 0b514c3

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

site/src/comparison.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub async fn handle_triage(
2323
body: api::triage::Request,
2424
ctxt: &SiteCtxt,
2525
) -> api::ServerResult<api::triage::Response> {
26+
log::info!("handle_triage({:?})", body);
2627
let start = body.start;
2728
let end = body.end;
2829
let master_commits = collector::master_commits()
@@ -91,6 +92,7 @@ pub async fn handle_compare(
9192
body: api::comparison::Request,
9293
ctxt: &SiteCtxt,
9394
) -> api::ServerResult<api::comparison::Response> {
95+
log::info!("handle_compare({:?})", body);
9496
let master_commits = collector::master_commits()
9597
.await
9698
.map_err(|e| format!("error retrieving master commit list: {}", e))?;

site/src/request_handlers/github.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ pub async fn handle_github(
2424
request: github::Request,
2525
ctxt: Arc<SiteCtxt>,
2626
) -> ServerResult<github::Response> {
27+
log::info!("handle_github({:?})", request);
2728
if request.comment.body.contains(" homu: ") {
2829
if let Some(sha) = parse_homu_comment(&request.comment.body).await {
2930
enqueue_sha(request.issue, &ctxt, sha).await?;

site/src/request_handlers/self_profile.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub async fn handle_self_profile_processed_download(
1717
body: self_profile_processed::Request,
1818
ctxt: &SiteCtxt,
1919
) -> http::Response<hyper::Body> {
20+
log::info!("handle_self_profile_processed_download({:?})", body);
2021
let mut params = body.params.clone();
2122
let diff_against = params.remove("base_commit");
2223

@@ -399,6 +400,7 @@ pub async fn handle_self_profile_raw_download(
399400
body: self_profile_raw::Request,
400401
ctxt: &SiteCtxt,
401402
) -> http::Response<hyper::Body> {
403+
log::info!("handle_self_profile_raw_download({:?})", body);
402404
let url = match handle_self_profile_raw(body, ctxt).await {
403405
Ok(v) => v.url,
404406
Err(e) => {

0 commit comments

Comments
 (0)