From aee2b06780858c12d8cb04c7b1ba592543410aa9 Mon Sep 17 00:00:00 2001 From: Max Rydahl Andersen Date: Thu, 27 Jul 2017 22:36:22 +0200 Subject: 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. --- hugolib/config.go | 1 + 1 file changed, 1 insertion(+) (limited to 'hugolib') 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) } -- cgit v1.2.3