Browse Source

NET-6653 Enabling container logs when initConsulServers fails and ret… (#20396)

NET-6653 Enabling container logs when initConsulServers fails and return an error (container logs during launch() failure)
On branch NET-6653
	modified:   testing/deployer/sprawl/boot.go
pull/20342/head^2^2
Sooraj Sreekumar 10 months ago committed by GitHub
parent
commit
eb6a59dd11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      testing/deployer/sprawl/boot.go

3
testing/deployer/sprawl/boot.go

@ -313,6 +313,9 @@ func (s *Sprawl) initConsulServers() error {
func (s *Sprawl) createFirstTime() error {
if err := s.initConsulServers(); err != nil {
if err := s.CaptureLogs(context.Background()); err != nil {
s.logger.Warn("container logs capture encountered failures", "error", err)
}
return fmt.Errorf("initConsulServers: %w", err)
}

Loading…
Cancel
Save