Skip to content

Commit

Permalink
log level
Browse files Browse the repository at this point in the history
  • Loading branch information
michalpristas committed Nov 19, 2021
1 parent 27400e8 commit 778c564
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 778c564

Please sign in to comment.