hugolib: Make missing GitInfo a WARNING
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 26 Apr 2017 09:03:12 +0000 (11:03 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 26 Apr 2017 09:03:12 +0000 (11:03 +0200)
And not an ERROR.

Fixes #3376

hugolib/gitinfo.go

index dfa2b4dc864fa68434373eb124b93c8bee1083c1..f4789320dc53e6d7a5cb7aee39a0e536ed40ef7a 100644 (file)
@@ -58,7 +58,7 @@ func (h *HugoSites) assembleGitInfo() {
                filename := path.Join(filepath.ToSlash(contentRoot), contentDir, filepath.ToSlash(p.Path()))
                g, ok := gitMap[filename]
                if !ok {
-                       h.Log.ERROR.Printf("Failed to find GitInfo for %q", filename)
+                       h.Log.WARN.Printf("Failed to find GitInfo for %q", filename)
                        return
                }