Skip to content

Commit 8ec29cc

Browse files
committed
disabled some sources of noise on stderr.
output on stderr when the script exits with a failure is now sent as an alert.
1 parent c6c35eb commit 8ec29cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func slurp_url(url string, token string) string {
101101
}
102102
defer resp.Body.Close()
103103

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

0 commit comments

Comments
 (0)