Show server modules info properly

This commit is contained in:
Sergey Stepanov 2021-01-05 00:14:59 +03:00
parent 62d8240e7c
commit a3d08637e0
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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() {