mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
create: Always print "Content ... created"
This indeliberately changed to INFO level in Hugo 0.89.0. Fixes #9157
This commit is contained in:
@@ -238,7 +238,7 @@ func (b *contentBuilder) buildFile() (string, error) {
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
b.h.Log.Infof("Content %q created", contentPlaceholderAbsFilename)
|
b.h.Log.Printf("Content %q created", contentPlaceholderAbsFilename)
|
||||||
|
|
||||||
return contentPlaceholderAbsFilename, nil
|
return contentPlaceholderAbsFilename, nil
|
||||||
}
|
}
|
||||||
@@ -335,7 +335,7 @@ func (b *contentBuilder) openInEditorIfConfigured(filename string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
b.h.Log.Infof("Editing %q with %q ...\n", filename, editor)
|
b.h.Log.Printf("Editing %q with %q ...\n", filename, editor)
|
||||||
|
|
||||||
cmd, err := hexec.SafeCommand(editor, filename)
|
cmd, err := hexec.SafeCommand(editor, filename)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user