summaryrefslogtreecommitdiffstats
path: root/hugolib
diff options
context:
space:
mode:
authorMax Rydahl Andersen <max.andersen@gmail.com>2017-07-27 22:36:22 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-07-27 22:36:22 +0200
commitaee2b06780858c12d8cb04c7b1ba592543410aa9 (patch)
tree2f74b0cdf3096126c2bfa005376365661cdd8e4a /hugolib
parentc1a5da9777adb81ad170a9391210dbfd047c4e48 (diff)
Add --debug option to be improved on over time
Why: * first time using hugo I got very little info from --verbose output but I noticed there is quite a lot of useful DEBUG logging * asked for in other issues like https://github.com/gohugoio/hugo/issues/3514 This change addreses the need by: * adding a simple --debug flag which simply turns on debug level in stdout and logoutput if enabled.
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index 7779a4d83..e70d07756 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -132,4 +132,5 @@ func loadDefaultSettingsFor(v *viper.Viper) {
v.SetDefault("enableGitInfo", false)
v.SetDefault("ignoreFiles", make([]string, 0))
v.SetDefault("disableAliases", false)
+ v.SetDefault("debug", false)
}