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:
authorNick Thomas <nick@gitlab.com>2018-03-13 20:45:12 +0300
committerNick Thomas <nick@gitlab.com>2018-03-13 20:45:12 +0300
commita38e722ca89b17cfe339c3f29e764e25df565841 (patch)
tree8907da46ce6395ca6ba39cd78cf4c06ac4149e1a /logging.go
parent62157ad75971bbc687ebf7990649a035820e4644 (diff)
parent9fd411b8251f47ee93018c9816dce63f7af49093 (diff)
Merge branch 'feature/add-more-debug-logging' into 'master'
Add more logging to gitlab pages daemon See merge request gitlab-org/gitlab-pages!62
Diffstat (limited to 'logging.go')
-rw-r--r--logging.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/logging.go b/logging.go
index dd282b1a..f3859059 100644
--- a/logging.go
+++ b/logging.go
@@ -13,7 +13,11 @@ var (
logrusEntry = log.WithField("system", "http")
)
-func configureLogging(format string) {
+func configureLogging(format string, verbose bool) {
+ if verbose {
+ log.SetLevel(log.DebugLevel)
+ }
+
switch format {
case "json":
log.SetFormatter(&log.JSONFormatter{})