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:
authorJaime Martinez <jmartinez@gitlab.com>2021-07-07 05:19:48 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-07-07 05:19:48 +0300
commit86afc1dfeeb07fbc140d08ef8cdcfd8cbd4d7bcb (patch)
tree41a2d15d113a8dba2513ca42d9c82722d1c5892b /main.go
parente74c91bfe5c95d6da82691e0c753cc50b661613c (diff)
Improve logging and correlation ID
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/main.go b/main.go
index ec4f917f..080ad6ed 100644
--- a/main.go
+++ b/main.go
@@ -7,9 +7,8 @@ import (
"os"
"time"
- log "github.com/sirupsen/logrus"
-
"gitlab.com/gitlab-org/labkit/errortracking"
+ "gitlab.com/gitlab-org/labkit/log"
cfg "gitlab.com/gitlab-org/gitlab-pages/internal/config"
"gitlab.com/gitlab-org/gitlab-pages/internal/logging"
@@ -63,8 +62,8 @@ func appMain() {
log.WithFields(log.Fields{
"version": VERSION,
"revision": REVISION,
- }).Print("GitLab Pages Daemon")
- log.Printf("URL: https://gitlab.com/gitlab-org/gitlab-pages")
+ }).Info("GitLab Pages Daemon")
+ log.Info("URL: https://gitlab.com/gitlab-org/gitlab-pages")
if err := os.Chdir(config.General.RootDir); err != nil {
fatal(err, "could not change directory into pagesRoot")
@@ -186,8 +185,6 @@ func printVersion(showVersion bool, version string) {
}
func main() {
- log.SetOutput(os.Stderr)
-
rand.Seed(time.Now().UnixNano())
metrics.MustRegister()