Add correct config file name to verbose server log
authorMichael Henderson <mdhender@mdhender.com>
Mon, 9 Oct 2017 04:23:07 +0000 (22:23 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 10 Oct 2017 05:47:35 +0000 (07:47 +0200)
Server logging uses the wrong variable when displaying
the configuration file name. This update changes the
log to use the `config` variable.

commands/hugo.go

index 2c6e3ffef0f6781dae05a76ba89fff8573bd8a7f..4acc5c4e67610b0f3c866805f40401fa58eebced 100644 (file)
@@ -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 != "" {