Skip to content

Commit 15ec031

Browse files
mdhenderbep
authored andcommitted
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.
1 parent 01e5460 commit 15ec031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎commands/hugo.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ func InitializeConfig(subCmdVs ...*cobra.Command) (*deps.DepsCfg, error) {
391391
return nil, err
392392
}
393393

394-
cfg.Logger.INFO.Println("Using config file:", viper.ConfigFileUsed())
394+
cfg.Logger.INFO.Println("Using config file:", config.ConfigFileUsed())
395395

396396
themeDir := c.PathSpec().GetThemeDir()
397397
if themeDir != "" {

0 commit comments

Comments
 (0)