🎨 Fix #362
This commit is contained in:
parent
1857df995d
commit
38f88c2c17
|
@ -64,6 +64,7 @@ type conf struct {
|
||||||
HTTPSessionMaxAge int // HTTP session max age (in seciond)
|
HTTPSessionMaxAge int // HTTP session max age (in seciond)
|
||||||
StaticResourceVersion string // version of static resources
|
StaticResourceVersion string // version of static resources
|
||||||
Locale string // default locale
|
Locale string // default locale
|
||||||
|
Autocomplete bool // default autocomplete
|
||||||
SiteStatCode template.HTML // site statistic code
|
SiteStatCode template.HTML // site statistic code
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,6 +176,8 @@ func initWide(confPath, confData, confServer, confLogLevel string, confSiteStatC
|
||||||
os.Exit(-1)
|
os.Exit(-1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Wide.Autocomplete = true // default to true
|
||||||
|
|
||||||
// Logging Level
|
// Logging Level
|
||||||
log.SetLevel(Wide.LogLevel)
|
log.SetLevel(Wide.LogLevel)
|
||||||
if "" != confLogLevel {
|
if "" != confLogLevel {
|
||||||
|
|
Loading…
Reference in New Issue