关闭 Session 认知
This commit is contained in:
parent
daaa5b493b
commit
1f862380cf
3 changed files with 7 additions and 2 deletions
|
|
@ -43,6 +43,8 @@ var langs = map[string]string{
|
|||
"Initialize project": "项目初始化",
|
||||
"✨DONE✨": "✨完成✨",
|
||||
"NEXT:": "下一步:",
|
||||
"Listening": " 监听",
|
||||
"✨LISTENING✨": "✨服务正在运行✨",
|
||||
}
|
||||
|
||||
// L 多语言切换
|
||||
|
|
|
|||
|
|
@ -78,6 +78,8 @@ var startCmd = &cobra.Command{
|
|||
fmt.Println(color.WhiteString(L("Frontend")), color.GreenString(" http://%s%s/", host, port))
|
||||
fmt.Println(color.WhiteString(L("Dashboard")), color.GreenString(" http://%s%s/xiang/login/admin", host, port))
|
||||
fmt.Println(color.WhiteString(L("API")), color.GreenString(" http://%s%s/api", host, port))
|
||||
fmt.Println(color.WhiteString(L("Listening")), color.GreenString(" %s:%d", config.Conf.Host, config.Conf.Port))
|
||||
|
||||
fmt.Println("")
|
||||
|
||||
// 调试模式
|
||||
|
|
@ -97,7 +99,7 @@ var startCmd = &cobra.Command{
|
|||
}
|
||||
}
|
||||
|
||||
fmt.Println(color.GreenString(L("✨DONE✨")))
|
||||
fmt.Println(color.GreenString(L("✨LISTENING✨")))
|
||||
service.Start()
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package share
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
|
||||
"github.com/buraksezer/olric"
|
||||
|
|
@ -72,7 +73,7 @@ func SessionServerStart() {
|
|||
// c.BindAddr = config.Conf.Session.Host
|
||||
// c.BindPort = config.Conf.Session.Port
|
||||
|
||||
// c.Logger.SetOutput(ioutil.Discard) // 暂时关闭日志
|
||||
c.Logger.SetOutput(ioutil.Discard) // 暂时关闭日志
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
c.Started = func() {
|
||||
defer cancel()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue