优化结构
This commit is contained in:
parent
ac09f38940
commit
3d108ebdfe
|
|
@ -104,6 +104,10 @@ func NewGinEngineWithRuntime(runtime *config.Store, access *systemservice.Access
|
|||
if ws != nil && ws.Enabled() {
|
||||
engine.GET(ws.Path(), handleWebSocket)
|
||||
}
|
||||
if logger != nil {
|
||||
logger.Info("websocket endpoint initialized", "mod", "websocket",
|
||||
"enabled", ws != nil && ws.Enabled(), "path", websocketPath(ws))
|
||||
}
|
||||
env := ""
|
||||
if snapshot != nil && snapshot.Admin != nil && snapshot.Admin.App != nil {
|
||||
env = strings.ToLower(strings.TrimSpace(snapshot.Admin.App.Env))
|
||||
|
|
|
|||
Loading…
Reference in New Issue