|
@@ -51,11 +51,11 @@ func (s *composeService) Logs(ctx context.Context, projectName string, consumer
|
|
|
Tail: options.Tail,
|
|
Tail: options.Tail,
|
|
|
Timestamps: options.Timestamps,
|
|
Timestamps: options.Timestamps,
|
|
|
})
|
|
})
|
|
|
- defer r.Close() // nolint errcheck
|
|
|
|
|
-
|
|
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return err
|
|
return err
|
|
|
}
|
|
}
|
|
|
|
|
+ defer r.Close() // nolint errcheck
|
|
|
|
|
+
|
|
|
name := getContainerNameWithoutProject(c)
|
|
name := getContainerNameWithoutProject(c)
|
|
|
w := utils.GetWriter(name, service, func(event compose.ContainerEvent) {
|
|
w := utils.GetWriter(name, service, func(event compose.ContainerEvent) {
|
|
|
consumer.Log(name, service, event.Line)
|
|
consumer.Log(name, service, event.Line)
|