diff options
author | Nick Thomas <nick@gitlab.com> | 2018-03-13 20:45:12 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-03-13 20:45:12 +0300 |
commit | a38e722ca89b17cfe339c3f29e764e25df565841 (patch) | |
tree | 8907da46ce6395ca6ba39cd78cf4c06ac4149e1a /logging.go | |
parent | 62157ad75971bbc687ebf7990649a035820e4644 (diff) | |
parent | 9fd411b8251f47ee93018c9816dce63f7af49093 (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.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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{}) |