dont rewrite operators and dont write replaceAttr function

This commit is contained in:
miampf 2024-01-10 14:16:45 +01:00
parent 7cabd03ade
commit c1168588e6
No known key found for this signature in database
GPG key ID: 376EAC0E5307A669
2 changed files with 0 additions and 6 deletions

View file

@ -93,11 +93,6 @@ func (l *grpcLogger) Errorf(format string, args ...interface{}) {
_ = l.logger.Handler().Handle(context.Background(), r)
}
// TODO(miampf): Find a way to log on a fatal level, not an error level?
// A ReplaceAttr function could be implemented in the logger package, however
// this would increase it's complexity again (look [here](https://pkg.go.dev/log/slog#HandlerOptions)
// for a reference implementation.
func (l *grpcLogger) Fatal(args ...interface{}) {
var pcs [1]uintptr
runtime.Callers(2, pcs[:])

View file

@ -75,7 +75,6 @@ func main() {
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
"Enable leader election for controller manager. "+
"Enabling this will ensure there is only one active controller manager.")
// TODO(miampf): Find out what is going on here and reimplement it in log/slog.
opts := zap.Options{
Development: true,
}