mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-23 07:58:04 +00:00
Update Go version and package dependencies
This commit is contained in:
6
vendor/sigs.k8s.io/controller-runtime/pkg/log/zap/zap.go
generated
vendored
6
vendor/sigs.k8s.io/controller-runtime/pkg/log/zap/zap.go
generated
vendored
@@ -101,7 +101,7 @@ func newConsoleEncoder(opts ...EncoderConfigOption) zapcore.Encoder {
|
||||
return zapcore.NewConsoleEncoder(encoderConfig)
|
||||
}
|
||||
|
||||
// Level sets Options.Level, which configures the the minimum enabled logging level e.g Debug, Info.
|
||||
// Level sets Options.Level, which configures the minimum enabled logging level e.g Debug, Info.
|
||||
// A zap log level should be multiplied by -1 to get the logr verbosity.
|
||||
// For example, to get logr verbosity of 3, pass zapcore.Level(-3) to this Opts.
|
||||
// See https://pkg.go.dev/github.com/go-logr/zapr for how zap level relates to logr verbosity.
|
||||
@@ -168,7 +168,7 @@ type Options struct {
|
||||
// underlying Zap logger.
|
||||
ZapOpts []zap.Option
|
||||
// TimeEncoder specifies the encoder for the timestamps in log messages.
|
||||
// Defaults to EpochTimeEncoder as this is the default in Zap currently.
|
||||
// Defaults to RFC3339TimeEncoder.
|
||||
TimeEncoder zapcore.TimeEncoder
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ func (o *Options) addDefaults() {
|
||||
}
|
||||
|
||||
if o.TimeEncoder == nil {
|
||||
o.TimeEncoder = zapcore.EpochTimeEncoder
|
||||
o.TimeEncoder = zapcore.RFC3339TimeEncoder
|
||||
}
|
||||
f := func(ecfg *zapcore.EncoderConfig) {
|
||||
ecfg.EncodeTime = o.TimeEncoder
|
||||
|
Reference in New Issue
Block a user