Skip to content

Commit

Permalink
Set verbose to Info level
Browse files Browse the repository at this point in the history
  • Loading branch information
spf13 committed May 27, 2014
1 parent e799100 commit 9173022
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/hugo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9173022

Please sign in to comment.