Skip to content

Commit 8e0d5e2

Browse files
authored
Merge pull request #2328 from Kobzol/fix-empty-command
Add comment send error logging and handle empty commands
2 parents c295311 + 6a4ea7a commit 8e0d5e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

site/src/github/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl Client {
226226
let resp = self.send(req).await;
227227

228228
if let Err(e) = resp {
229-
eprintln!("failed to post comment: {e:?}");
229+
log::error!("failed to post GitHub comment: {e:?}");
230230
}
231231
}
232232

site/src/request_handlers/github.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async fn handle_issue(
6969
}
7070
}
7171

72-
if comment.body.contains("@rust-timer ") {
72+
if comment.body.contains("@rust-timer") {
7373
return handle_rust_timer(ctxt, &gh_client, comment, issue).await;
7474
}
7575

0 commit comments

Comments
 (0)