mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-03-25 09:25:49 +00:00
Don't send emails about GitHub 502s
This commit is contained in:
parent
876c32b4d5
commit
ffa401fb8d
1 changed files with 5 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ import (
|
|||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
|
@ -267,6 +268,10 @@ var sendDigestForAccountFunc = delay.Func(
|
|||
})
|
||||
|
||||
func sendDigestErrorMail(e error, c appengine.Context, gitHubUserId int) {
|
||||
if strings.Contains(e.Error(), ": 502") {
|
||||
// Ignore 502s from GitHub, there's nothing we do about them.
|
||||
return;
|
||||
}
|
||||
errorMessage := &mail.Message{
|
||||
Sender: "RetroGit Admin <digests@retrogit.com>",
|
||||
To: []string{"mihai.parparita@gmail.com"},
|
||||
|
|
|
|||
Loading…
Reference in a new issue