Skip to content

Commit 4e1e0fe

Browse files
committed
executor/oci: use buildkit bklog instead of containerd/log
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 2614833 commit 4e1e0fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

executor/oci/internal/resolvconf/resolvconf.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
"strconv"
2626
"strings"
2727

28-
"github.com/containerd/log"
2928
"github.com/moby/buildkit/errdefs"
29+
"github.com/moby/buildkit/util/bklog"
3030
)
3131

3232
// Fallback nameservers, to use if none can be obtained from the host or command
@@ -220,7 +220,7 @@ func (rc *ResolvConf) TransformForLegacyNw(ipv6 bool) {
220220
}
221221
rc.nameServers = filtered
222222
if len(rc.nameServers) == 0 {
223-
log.G(context.TODO()).Info("No non-localhost DNS nameservers are left in resolv.conf. Using default external servers")
223+
bklog.G(context.TODO()).Info("No non-localhost DNS nameservers are left in resolv.conf. Using default external servers")
224224
rc.nameServers = defaultNSAddrs(ipv6)
225225
rc.md.Warnings = append(rc.md.Warnings, "Used default nameservers.")
226226
}

executor/oci/internal/resolvconf/resolvconf_path.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"net/netip"
66
"sync"
77

8-
"github.com/containerd/log"
8+
"github.com/moby/buildkit/util/bklog"
99
)
1010

1111
const (
@@ -49,7 +49,7 @@ func Path() string {
4949
ns := rc.nameServers
5050
if len(ns) == 1 && ns[0] == netip.MustParseAddr("127.0.0.53") {
5151
pathAfterSystemdDetection = alternatePath
52-
log.G(context.TODO()).Infof("detected 127.0.0.53 nameserver, assuming systemd-resolved, so using resolv.conf: %s", alternatePath)
52+
bklog.G(context.TODO()).Infof("detected 127.0.0.53 nameserver, assuming systemd-resolved, so using resolv.conf: %s", alternatePath)
5353
}
5454
})
5555
return pathAfterSystemdDetection

0 commit comments

Comments
 (0)