Set verbose to Info level
authorspf13 <steve.francia@gmail.com>
Tue, 27 May 2014 22:29:55 +0000 (18:29 -0400)
committerspf13 <steve.francia@gmail.com>
Tue, 27 May 2014 22:29:55 +0000 (18:29 -0400)
commands/hugo.go

index 5e55d52792373ef5b4b33aa1cb9f119785f3abe0..573a405d097289f7abd1470346945efe9b905486 100644 (file)
@@ -174,11 +174,11 @@ func InitializeConfig() {
        }
 
        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 @@ func NewWatcher(port int) error {
                                                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