Skip to content

Commit

Permalink
Add error log for listener creation failure (#25502)
Browse files Browse the repository at this point in the history
Add an error entry in the elastic agent log when listener creation
fails.
  • Loading branch information
michel-laterman authored May 6, 2021
1 parent fea0d30 commit 5a8fcc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/elastic-agent/CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
- Fixed issue when unversioned home is set and invoked watcher failing with ENOENT {issue}25371[25371]
- Fixed Elastic Agent: expecting Dict and received *transpiler.Key for '0' {issue}24453[24453]
- Fix AckBatch to do nothing when no actions passed {pull}25562[25562]
- Add error log entry when listener creation fails {issue}23483[23482]

==== New features

Expand Down
1 change: 1 addition & 0 deletions x-pack/elastic-agent/pkg/agent/control/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func (s *Server) Start() error {

lis, err := createListener(s.logger)
if err != nil {
s.logger.Errorf("unable to create listener: %s", err)
return err
}
s.listener = lis
Expand Down

0 comments on commit 5a8fcc3

Please sign in to comment.