Skip to content

Commit 0074631

Browse files
crazy-maxjedevc
andcommitted
chore: use bklog instead of logrus
Co-authored-by: Justin Chadwell <[email protected]> Signed-off-by: CrazyMax <[email protected]>
1 parent 980ea2d commit 0074631

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cmd/buildkitd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func main() {
285285
// Stop if we are registering or unregistering against Windows SCM.
286286
stop, err := registerUnregisterService(cfg.Root)
287287
if err != nil {
288-
logrus.Fatal(err)
288+
bklog.L.Fatal(err)
289289
}
290290
if stop {
291291
return nil
@@ -332,7 +332,7 @@ func main() {
332332

333333
// Launch as a Windows Service if necessary
334334
if err := launchService(server); err != nil {
335-
logrus.Fatal(err)
335+
bklog.L.Fatal(err)
336336
}
337337

338338
errCh := make(chan error, 1)

executor/resources/monitor.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
"time"
1212

1313
"github.com/moby/buildkit/executor/resources/types"
14+
"github.com/moby/buildkit/util/bklog"
1415
"github.com/moby/buildkit/util/network"
1516
"github.com/prometheus/procfs"
16-
"github.com/sirupsen/logrus"
1717
)
1818

1919
const (
@@ -229,7 +229,7 @@ func NewMonitor() (*Monitor, error) {
229229
return
230230
}
231231
if err := prepareCgroupControllers(); err != nil {
232-
logrus.Warnf("failed to prepare cgroup controllers: %+v", err)
232+
bklog.L.Warnf("failed to prepare cgroup controllers: %+v", err)
233233
}
234234
})
235235

@@ -280,7 +280,7 @@ func prepareCgroupControllers() error {
280280
}
281281
if err := os.WriteFile(filepath.Join(defaultMountpoint, cgroupSubtreeFile), []byte("+"+c), 0); err != nil {
282282
// ignore error
283-
logrus.Warnf("failed to enable cgroup controller %q: %+v", c, err)
283+
bklog.L.Warnf("failed to enable cgroup controller %q: %+v", c, err)
284284
}
285285
}
286286
return nil

0 commit comments

Comments
 (0)