We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10b4831 commit d869815Copy full SHA for d869815
cmd/device-monitor/main.go
@@ -16,8 +16,14 @@ import (
16
)
17
18
func main() {
19
- opts := zap.Options{}
20
- log := zap.New(zap.UseFlagOptions(&opts))
+ // TODO: move this to pkg and add tests
+ opts := zap.Options{
21
+ Development: true,
22
+ }
23
+ ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts)))
24
+ log := ctrl.Log.WithName("monitor")
25
+
26
+ log.Info("Start setup")
27
28
config, err := rest.InClusterConfig()
29
if err != nil {
0 commit comments