This commit is contained in:
6543 2022-11-07 22:49:46 +01:00
parent 70871e77be
commit a03ea956d5
No known key found for this signature in database
GPG key ID: B8BE6D610E61C862

View file

@ -4,6 +4,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/rs/zerolog/log"
"codeberg.org/codeberg/pages/server/cache" "codeberg.org/codeberg/pages/server/cache"
"codeberg.org/codeberg/pages/server/gitea" "codeberg.org/codeberg/pages/server/gitea"
) )
@ -42,6 +44,8 @@ func CheckCanonicalDomain(giteaClient *gitea.Client, targetOwner, targetRepo, ta
valid = true valid = true
} }
} }
} else {
log.Info().Err(err).Msgf("could not read %s of %s/%s", canonicalDomainConfig, targetOwner, targetRepo)
} }
domains = append(domains, targetOwner+mainDomainSuffix) domains = append(domains, targetOwner+mainDomainSuffix)
if domains[len(domains)-1] == actualDomain { if domains[len(domains)-1] == actualDomain {