We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 448f923 commit 6f81f42Copy full SHA for 6f81f42
src/handlers/notification.rs
@@ -151,7 +151,14 @@ async fn id_from_user(
151
let team = match github::get_team(&ctx.github, team).await {
152
Ok(Some(team)) => team,
153
Ok(None) => {
154
- log::error!("team ping ({}) failed to resolve to a known team", login);
+ // If the team is in rust-lang*, then this is probably an error (potentially user
155
+ // error, but should be investigated). Otherwise it's probably not going to be in
156
+ // the team repository so isn't actually an error.
157
+ if login.starts_with("rust") {
158
+ log::error!("team ping ({}) failed to resolve to a known team", login);
159
+ } else {
160
+ log::info!("team ping ({}) failed to resolve to a known team", login);
161
+ }
162
return Ok(None);
163
}
164
Err(err) => {
0 commit comments