From 15ec031d9818d239bfbff525c00cd99cc3118a96 Mon Sep 17 00:00:00 2001 From: Michael Henderson Date: Sun, 8 Oct 2017 22:23:07 -0600 Subject: 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. --- commands/hugo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/hugo.go') 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 != "" { -- cgit v1.2.3