From 24b717ac85254cd712006e46691f2db5c32f749a Mon Sep 17 00:00:00 2001 From: CanmingCobble <107056780+CanmingCobble@users.noreply.github.com> Date: Tue, 20 Dec 2022 14:50:04 -0600 Subject: [PATCH] chore: Display launcher version in master log on startup (#601) --- .../internal/rm/dispatcherrm/dispatcher_resource_manager.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/master/internal/rm/dispatcherrm/dispatcher_resource_manager.go b/master/internal/rm/dispatcherrm/dispatcher_resource_manager.go index 7cc3064d50c..b1d7b707dea 100644 --- a/master/internal/rm/dispatcherrm/dispatcher_resource_manager.go +++ b/master/internal/rm/dispatcherrm/dispatcher_resource_manager.go @@ -1251,7 +1251,11 @@ func (m *dispatcherResourceManager) getAndCheckLauncherVersion(ctx *actor.Contex resp, _, err := m.apiClient.InfoApi.GetServerVersion(m.authContext(ctx)).Execute() if err == nil { if checkMinimumLauncherVersion(resp) { - m.launcherVersionIsOK = true + if !m.launcherVersionIsOK { + m.launcherVersionIsOK = true + logrus.Info(fmt.Sprintf("Determined HPC launcher %s at %s:%d", + resp, m.rmConfig.LauncherHost, m.rmConfig.LauncherPort)) + } } } if !m.launcherVersionIsOK {