From 778c5648081f8b696f16e822aa368876826f7c02 Mon Sep 17 00:00:00 2001 From: Michal Pristas Date: Fri, 19 Nov 2021 14:54:33 +0100 Subject: [PATCH] log level --- x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go b/x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go index 5750e2ce4b0..25365c9afe9 100644 --- a/x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go +++ b/x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go @@ -407,7 +407,9 @@ func (c *enrollCmd) prepareFleetTLS() error { } if c.options.FleetServer.InternalPort > 0 { - c.log.Debugf("Internal endpoint configured to: %d. Changing this value is not supported.", c.options.FleetServer.InternalPort) + if c.options.FleetServer.InternalPort != defaultFleetServerInternalPort { + c.log.Warnf("Internal endpoint configured to: %d. Changing this value is not supported.", c.options.FleetServer.InternalPort) + } c.options.InternalURL = fmt.Sprintf("%s:%d", defaultFleetServerInternalHost, c.options.FleetServer.InternalPort) }