don't block events loop collecting logs
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
eb0632b1d8
commit
dec608f3cd
@ -96,6 +96,7 @@ func (s *composeService) Logs(
|
||||
ID: c.ID,
|
||||
Service: c.Labels[api.ServiceLabel],
|
||||
})
|
||||
eg.Go(func() error {
|
||||
err := s.logContainers(ctx, consumer, c, api.LogOptions{
|
||||
Follow: options.Follow,
|
||||
Since: t.Format(time.RFC3339Nano),
|
||||
@ -108,6 +109,8 @@ func (s *composeService) Logs(
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
})
|
||||
return nil
|
||||
}, func(c types.Container, t time.Time) error {
|
||||
printer.HandleEvent(api.ContainerEvent{
|
||||
Type: api.ContainerEventAttach,
|
||||
|
Loading…
x
Reference in New Issue
Block a user