File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,14 @@ async fn id_from_user(
151
151
let team = match github:: get_team ( & ctx. github , team) . await {
152
152
Ok ( Some ( team) ) => team,
153
153
Ok ( None ) => {
154
- log:: error!( "team ping ({}) failed to resolve to a known team" , login) ;
154
+ // 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
+ }
155
162
return Ok ( None ) ;
156
163
}
157
164
Err ( err) => {
You can’t perform that action at this time.
0 commit comments