ref: 9173022ea7bff5885bb8cfde6f62fa4865b6a829
parent: e7991003951959809349acb80f041152338f0d7b
author: spf13 <[email protected]>
date: Tue May 27 14:29:55 EDT 2014
Set verbose to Info level
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -174,11 +174,11 @@
}
if viper.GetBool("verbose") {
- jww.SetStdoutThreshold(jww.LevelDebug)
+ jww.SetStdoutThreshold(jww.LevelInfo)
}
if VerboseLog {
- jww.SetLogThreshold(jww.LevelDebug)
+ jww.SetLogThreshold(jww.LevelInfo)
}
jww.INFO.Println("Using config file:", viper.ConfigFileUsed())
@@ -312,7 +312,7 @@
continue
}
- isstatic := strings.HasPrefix(ev.Name, helpers.AbsPathify(viper.GetString("StaticDir")))
+ isstatic := strings.HasPrefix(ev.Name, helpers.AbsPathify(viper.GetString("StaticDir"))) || strings.HasPrefix(ev.Name, helpers.AbsPathify("themes/"+viper.GetString("theme"))+"/static/")
static_changed = static_changed || isstatic
dynamic_changed = dynamic_changed || !isstatic