File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,11 @@ package compose
18
18
19
19
import (
20
20
"context"
21
- "errors"
22
21
"io"
23
22
"time"
24
23
24
+ "github.com/containerd/errdefs"
25
25
"github.com/docker/docker/api/types/container"
26
- "github.com/docker/docker/errdefs"
27
26
"github.com/docker/docker/pkg/stdcopy"
28
27
"github.com/sirupsen/logrus"
29
28
"golang.org/x/sync/errgroup"
@@ -64,8 +63,7 @@ func (s *composeService) Logs(
64
63
for _ , ctr := range containers {
65
64
eg .Go (func () error {
66
65
err := s .logContainers (ctx , consumer , ctr , options )
67
- var notImplErr errdefs.ErrNotImplemented
68
- if errors .As (err , & notImplErr ) {
66
+ if errdefs .IsNotImplemented (err ) {
69
67
logrus .Warnf ("Can't retrieve logs for %q: %s" , getCanonicalContainerName (ctr ), err .Error ())
70
68
return nil
71
69
}
@@ -106,8 +104,7 @@ func (s *composeService) Logs(
106
104
Tail : options .Tail ,
107
105
Timestamps : options .Timestamps ,
108
106
})
109
- var notImplErr errdefs.ErrNotImplemented
110
- if errors .As (err , & notImplErr ) {
107
+ if errdefs .IsNotImplemented (err ) {
111
108
// ignore
112
109
return nil
113
110
}
You can’t perform that action at this time.
0 commit comments