(ctx context.Context, consumer api.LogConsumer, c container.Summary, options api.LogOptions)
| 114 | } |
| 115 | |
| 116 | func (s *composeService) logContainer(ctx context.Context, consumer api.LogConsumer, c container.Summary, options api.LogOptions) error { |
| 117 | res, err := s.apiClient().ContainerInspect(ctx, c.ID, client.ContainerInspectOptions{}) |
| 118 | if err != nil { |
| 119 | return err |
| 120 | } |
| 121 | name := getContainerNameWithoutProject(c) |
| 122 | return s.doLogContainer(ctx, consumer, name, res.Container, options) |
| 123 | } |
| 124 | |
| 125 | func (s *composeService) doLogContainer(ctx context.Context, consumer api.LogConsumer, name string, ctr container.InspectResponse, options api.LogOptions) error { |
| 126 | r, err := s.apiClient().ContainerLogs(ctx, ctr.ID, client.ContainerLogsOptions{ |
no test coverage detected