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:
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{})