Skip to content

Commit

Permalink
Use development logging in monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Apr 26, 2022
1 parent 10b4831 commit d869815
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmd/device-monitor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ import (
)

func main() {
opts := zap.Options{}
log := zap.New(zap.UseFlagOptions(&opts))
// TODO: move this to pkg and add tests
opts := zap.Options{
Development: true,
}
ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts)))
log := ctrl.Log.WithName("monitor")

log.Info("Start setup")

config, err := rest.InClusterConfig()
if err != nil {
Expand Down

0 comments on commit d869815

Please sign in to comment.