Skip to content

Commit d869815

Browse files
Use development logging in monitor
1 parent 10b4831 commit d869815

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cmd/device-monitor/main.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@ import (
1616
)
1717

1818
func main() {
19-
opts := zap.Options{}
20-
log := zap.New(zap.UseFlagOptions(&opts))
19+
// TODO: move this to pkg and add tests
20+
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")
2127

2228
config, err := rest.InClusterConfig()
2329
if err != nil {

0 commit comments

Comments
 (0)