mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-15 18:20:18 -04:00
dont rewrite operators and dont write replaceAttr function
This commit is contained in:
parent
7cabd03ade
commit
c1168588e6
2 changed files with 0 additions and 6 deletions
|
@ -93,11 +93,6 @@ func (l *grpcLogger) Errorf(format string, args ...interface{}) {
|
||||||
_ = l.logger.Handler().Handle(context.Background(), r)
|
_ = 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{}) {
|
func (l *grpcLogger) Fatal(args ...interface{}) {
|
||||||
var pcs [1]uintptr
|
var pcs [1]uintptr
|
||||||
runtime.Callers(2, pcs[:])
|
runtime.Callers(2, pcs[:])
|
||||||
|
|
|
@ -75,7 +75,6 @@ func main() {
|
||||||
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
|
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
|
||||||
"Enable leader election for controller manager. "+
|
"Enable leader election for controller manager. "+
|
||||||
"Enabling this will ensure there is only one active 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{
|
opts := zap.Options{
|
||||||
Development: true,
|
Development: true,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue