mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
improve graceful reload feature for ghttp.Server
This commit is contained in:
@ -6,6 +6,7 @@ import (
|
||||
|
||||
func main() {
|
||||
s := g.Server()
|
||||
s.SetConfigWithMap(g.Map{"Graceful": true})
|
||||
s.EnableAdmin()
|
||||
s.SetPort(8199)
|
||||
s.Run()
|
||||
|
||||
@ -222,10 +222,10 @@ func (m *Manager) init() {
|
||||
} else if m.options.Path != "" {
|
||||
files, _ := gfile.ScanDirFile(m.options.Path, "*.*", true)
|
||||
if len(files) == 0 {
|
||||
intlog.Printf(
|
||||
"no i18n files found in configured directory: %s",
|
||||
m.options.Path,
|
||||
)
|
||||
//intlog.Printf(
|
||||
// "no i18n files found in configured directory: %s",
|
||||
// m.options.Path,
|
||||
//)
|
||||
return
|
||||
}
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user