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:
authorAndrew Newdigate <andrew@gitlab.com>2019-07-24 10:50:11 +0300
committerAndrew Newdigate <andrew@gitlab.com>2019-08-30 18:20:42 +0300
commit4e80090046d58d8ddd80a38939262a957d6dea1f (patch)
treeaca3cf4db1f57e86946673dc7d0e2b96359a683d /main.go
parent95eb6930f030af0f5f1cecb734dc283d1735e0c6 (diff)
Add full HTTP metrics and logging to GitLab pages using LabKit
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index 6b85efe4..8c3ded3d 100644
--- a/main.go
+++ b/main.go
@@ -13,6 +13,7 @@ import (
"gitlab.com/gitlab-org/labkit/errortracking"
"gitlab.com/gitlab-org/gitlab-pages/internal/host"
+ "gitlab.com/gitlab-org/gitlab-pages/internal/logging"
"gitlab.com/gitlab-org/gitlab-pages/internal/tlsconfig"
)
@@ -213,7 +214,10 @@ func appMain() {
printVersion(*showVersion, VERSION)
- configureLogging(*logFormat, *logVerbose)
+ err := logging.ConfigureLogging(*logFormat, *logVerbose)
+ if err != nil {
+ log.WithError(err).Fatal("Failed to initialize logging")
+ }
log.WithFields(log.Fields{
"version": VERSION,