Commit 66d4415
committed
Remove hard coded logger dev mode
Before this commit, the cluster operator always used a logger dev mode,
even in production.
After this commit, the logger is prod mode by default.
When developing locally deploying the operator using `make deploy-dev` and
`make deploy-kind`, the logger will use dev mode.
Futhermore, users can now configure more zap flags (see
https://github.com/kubernetes-sigs/controller-runtime/blob/66537ca5b7439b06f2f3b08901640f934834c9a1/pkg/log/zap/zap.go#L227-L233)
For example, they can set the log level.1 parent 9b239ea commit 66d4415
File tree
3 files changed
+7
-1
lines changed- config/default/overlays
- dev
- kind
3 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | | - | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
0 commit comments