diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2019-07-24 10:50:11 +0300 |
---|---|---|
committer | Andrew Newdigate <andrew@gitlab.com> | 2019-08-30 18:20:42 +0300 |
commit | 4e80090046d58d8ddd80a38939262a957d6dea1f (patch) | |
tree | aca3cf4db1f57e86946673dc7d0e2b96359a683d /main.go | |
parent | 95eb6930f030af0f5f1cecb734dc283d1735e0c6 (diff) |
Add full HTTP metrics and logging to GitLab pages using LabKit
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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, |