Add trace code for when we add port to controller address
This commit is contained in:
1 parent
5bf555cca2
commit
ee7cdde7de
1 file changed
+1
@@ -31,6 +31,7 @@ func (w *Worker) startControllerConnections() error {
|
||||
for _, addr := range w.conf.RawConfig.Worker.Controllers {
|
||||
host, port, err := net.SplitHostPort(addr)
|
||||
if err != nil && strings.Contains(err.Error(), "missing port in address") {
|
||||
w.logger.Trace("missing port in controller address, using port 9201", "address", addr)
|
||||
host, port, err = net.SplitHostPort(fmt.Sprintf("%s:%s", addr, "9201"))
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user