Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2020-02-24 16:03:50 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2020-02-24 16:03:50 +0300
commitc3003881c27fea2ff2ac45788997a8cefd73b9d5 (patch)
treeadf6a21210096f0f64f0a55f4fafc52fac5959a6
parent61dcb73441ba8e940b34c0ad18df363a5c0e768d (diff)
Log an error when a serving can not be fabricated
-rw-r--r--internal/source/gitlab/factory.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/source/gitlab/factory.go b/internal/source/gitlab/factory.go
index e14913c4..d526994f 100644
--- a/internal/source/gitlab/factory.go
+++ b/internal/source/gitlab/factory.go
@@ -3,6 +3,8 @@ package gitlab
import (
"strings"
+ log "github.com/sirupsen/logrus"
+
"gitlab.com/gitlab-org/gitlab-pages/internal/serving"
"gitlab.com/gitlab-org/gitlab-pages/internal/serving/disk"
"gitlab.com/gitlab-org/gitlab-pages/internal/serving/serverless"
@@ -33,6 +35,8 @@ func fabricateServing(lookup api.LookupPath) serving.Serving {
case "serverless":
serving, err := serverless.NewFromAPISource(source.Serverless)
if err != nil {
+ log.WithError(err).Errorf("could not fabricate serving for project %d", lookup.ProjectID)
+
break
}