mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-08-03 07:13:08 +00:00
Show server modules info properly
This commit is contained in:
parent
62d8240e7c
commit
a3d08637e0
2 changed files with 5 additions and 1 deletions
|
|
@ -73,6 +73,10 @@ func (sm *ServerMonitoring) Shutdown(ctx context.Context) error {
|
|||
return sm.server.Shutdown(ctx)
|
||||
}
|
||||
|
||||
func (sm *ServerMonitoring) String() string {
|
||||
return fmt.Sprintf("monitoring::%s:%d", sm.cfg.URLPrefix, sm.cfg.Port)
|
||||
}
|
||||
|
||||
func validate(conf *monitoring.ServerMonitoringConfig) monitoring.ServerMonitoringConfig {
|
||||
if conf.Port == 0 {
|
||||
conf.Port = 6365
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ func (wrk *Worker) init() {
|
|||
}
|
||||
|
||||
func (wrk *Worker) startModules() {
|
||||
glog.Info(wrk.servers)
|
||||
glog.Info("[worker] active modules: ", wrk.servers)
|
||||
for _, s := range wrk.servers {
|
||||
s := s
|
||||
go func() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue