Skip to content

Commit bce4988

Browse files
committed
enable reconcile logger to see when APIExports are updated
On-behalf-of: @SAP [email protected]
1 parent 736a5a8 commit bce4988

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/api-syncagent/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"github.com/kcp-dev/logicalcluster/v3"
2828
"github.com/spf13/pflag"
2929
"go.uber.org/zap"
30+
reconcilerlog "k8c.io/reconciler/pkg/log"
3031

3132
"github.com/kcp-dev/api-syncagent/internal/controller/apiexport"
3233
"github.com/kcp-dev/api-syncagent/internal/controller/apiresourceschema"
@@ -80,6 +81,7 @@ func main() {
8081

8182
// set the logger used by sigs.k8s.io/controller-runtime
8283
ctrlruntimelog.SetLogger(zapr.NewLogger(log.WithOptions(zap.AddCallerSkip(1))))
84+
reconcilerlog.SetLogger(sugar)
8385

8486
if err := run(ctx, sugar, opts); err != nil {
8587
sugar.Fatalw("Sync Agent has encountered an error", zap.Error(err))

0 commit comments

Comments
 (0)