Skip to content

Commit

Permalink
disabled some sources of noise on stderr.
Browse files Browse the repository at this point in the history
output on stderr when the script exits with a failure is now sent as an alert.
  • Loading branch information
lsh-0 committed May 30, 2023
1 parent c6c35eb commit 8ec29cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func slurp_url(url string, token string) string {
}
defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != 200 && resp.StatusCode != 404 {
stderr("non-200 response from URL: %s (%d)", url, resp.StatusCode)
return ""
}
Expand Down Expand Up @@ -150,7 +150,7 @@ func parse_maintainers_txt_file(contents string, maintainer_alias_map map[Mainta
}
for _, maintainer := range strings.Split(contents, "\n") {
if slack_channel(maintainer) {
stderr("skipping slack channel: %s", maintainer)
// stderr("skipping slack channel: %s", maintainer)
continue
}
alias, present := maintainer_alias_map[maintainer] // jdoe => [email protected]
Expand Down

0 comments on commit 8ec29cc

Please sign in to comment.