summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Henderson <mdhender@mdhender.com>2017-10-08 22:23:07 -0600
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-10-10 07:47:35 +0200
commit15ec031d9818d239bfbff525c00cd99cc3118a96 (patch)
tree2fa2273b1833162ad65da91c90d4cc4c3bbfc1fe
parent01e54609e78479aa793c64bc32feb66a3dacfade (diff)
Add correct config file name to verbose server log
Server logging uses the wrong variable when displaying the configuration file name. This update changes the log to use the `config` variable.
-rw-r--r--commands/hugo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index 2c6e3ffef..4acc5c4e6 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -391,7 +391,7 @@ func InitializeConfig(subCmdVs ...*cobra.Command) (*deps.DepsCfg, error) {
return nil, err
}
- cfg.Logger.INFO.Println("Using config file:", viper.ConfigFileUsed())
+ cfg.Logger.INFO.Println("Using config file:", config.ConfigFileUsed())
themeDir := c.PathSpec().GetThemeDir()
if themeDir != "" {