From 8ec29cc1168fe7cef5c7816f6816e3095c4f201c Mon Sep 17 00:00:00 2001 From: Luke Date: Tue, 30 May 2023 16:05:16 +0930 Subject: [PATCH] disabled some sources of noise on stderr. output on stderr when the script exits with a failure is now sent as an alert. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index e67cebb..eedc86f 100644 --- a/main.go +++ b/main.go @@ -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 "" } @@ -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 => john.doe@example.org