File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 6
6
"path/filepath"
7
7
"strings"
8
8
9
+ "github.com/sirupsen/logrus" // this is used by containerd libraries, so we need to set the default log level for it
9
10
"github.com/urfave/cli"
10
11
11
12
"github.com/docker-library/bashbrew/architecture"
@@ -163,6 +164,11 @@ func main() {
163
164
debugFlag = c .GlobalBool ("debug" )
164
165
noSortFlag = c .GlobalBool ("no-sort" )
165
166
167
+ if ! debugFlag {
168
+ // containerd uses logrus, but it defaults to "info" (which is a bit leaky where we use containerd)
169
+ logrus .SetLevel (logrus .WarnLevel )
170
+ }
171
+
166
172
arch = c .GlobalString ("arch" )
167
173
namespace = c .GlobalString ("namespace" )
168
174
constraints = c .GlobalStringSlice ("constraint" )
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ require (
12
12
github.com/klauspost/compress v1.13.6 // indirect
13
13
github.com/opencontainers/image-spec v1.0.2
14
14
github.com/sergi/go-diff v1.2.0 // indirect
15
+ github.com/sirupsen/logrus v1.8.1
15
16
github.com/urfave/cli v1.22.5
16
17
github.com/xanzy/ssh-agent v0.3.1 // indirect
17
18
golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
You can’t perform that action at this time.
0 commit comments