diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2020-10-08 12:38:42 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2020-10-13 14:08:30 +0300 |
commit | dc54f4215620da74b70dbd07d0f1369e409d3e0b (patch) | |
tree | 69e26a6cde0b614079a2ab0b361f1efe81a74066 /internal/source/gitlab | |
parent | 5f461b42e39419795b2669278398a9a7c6ed2cd9 (diff) |
Log serving type used for requestslog-serving-type
This extends our structured logging
with information about how the given
request was served
Diffstat (limited to 'internal/source/gitlab')
-rw-r--r-- | internal/source/gitlab/factory.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/source/gitlab/factory.go b/internal/source/gitlab/factory.go index 39193a16..41f7ea56 100644 --- a/internal/source/gitlab/factory.go +++ b/internal/source/gitlab/factory.go @@ -15,8 +15,9 @@ import ( // https://gitlab.com/gitlab-org/gitlab-pages/issues/272 func fabricateLookupPath(size int, lookup api.LookupPath) *serving.LookupPath { return &serving.LookupPath{ - Prefix: lookup.Prefix, + ServingType: lookup.Source.Type, Path: lookup.Source.Path, + Prefix: lookup.Prefix, IsNamespaceProject: (lookup.Prefix == "/" && size > 1), IsHTTPSOnly: lookup.HTTPSOnly, HasAccessControl: lookup.AccessControl, |