From a03ea956d5093cdf34fa3062f30224f425a681e2 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 7 Nov 2022 22:49:46 +0100 Subject: [PATCH] more log --- server/upstream/domains.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/upstream/domains.go b/server/upstream/domains.go index 95ba436..6ad6506 100644 --- a/server/upstream/domains.go +++ b/server/upstream/domains.go @@ -4,6 +4,8 @@ import ( "strings" "time" + "github.com/rs/zerolog/log" + "codeberg.org/codeberg/pages/server/cache" "codeberg.org/codeberg/pages/server/gitea" ) @@ -42,6 +44,8 @@ func CheckCanonicalDomain(giteaClient *gitea.Client, targetOwner, targetRepo, ta valid = true } } + } else { + log.Info().Err(err).Msgf("could not read %s of %s/%s", canonicalDomainConfig, targetOwner, targetRepo) } domains = append(domains, targetOwner+mainDomainSuffix) if domains[len(domains)-1] == actualDomain {