mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to master@31c870e82a48
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
9
vendor/github.com/moby/buildkit/util/bklog/log.go
generated
vendored
9
vendor/github.com/moby/buildkit/util/bklog/log.go
generated
vendored
@ -2,6 +2,7 @@ package bklog
|
||||
|
||||
import (
|
||||
"context"
|
||||
"runtime/debug"
|
||||
|
||||
"github.com/containerd/containerd/log"
|
||||
"github.com/sirupsen/logrus"
|
||||
@ -61,3 +62,11 @@ func GetLogger(ctx context.Context) (l *logrus.Entry) {
|
||||
|
||||
return l
|
||||
}
|
||||
|
||||
// LazyStackTrace lets you include a stack trace as a field's value in a log but only
|
||||
// call it when the log level is actually enabled.
|
||||
type LazyStackTrace struct{}
|
||||
|
||||
func (LazyStackTrace) String() string {
|
||||
return string(debug.Stack())
|
||||
}
|
||||
|
Reference in New Issue
Block a user