mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-20 00:03:06 +00:00
Set verbose to Info level
This commit is contained in:
parent
e799100395
commit
9173022ea7
1 changed files with 3 additions and 3 deletions
|
@ -174,11 +174,11 @@ func InitializeConfig() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if viper.GetBool("verbose") {
|
if viper.GetBool("verbose") {
|
||||||
jww.SetStdoutThreshold(jww.LevelDebug)
|
jww.SetStdoutThreshold(jww.LevelInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
if VerboseLog {
|
if VerboseLog {
|
||||||
jww.SetLogThreshold(jww.LevelDebug)
|
jww.SetLogThreshold(jww.LevelInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
jww.INFO.Println("Using config file:", viper.ConfigFileUsed())
|
jww.INFO.Println("Using config file:", viper.ConfigFileUsed())
|
||||||
|
@ -312,7 +312,7 @@ func NewWatcher(port int) error {
|
||||||
continue
|
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
|
static_changed = static_changed || isstatic
|
||||||
dynamic_changed = dynamic_changed || !isstatic
|
dynamic_changed = dynamic_changed || !isstatic
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue