Enable structured logs (#1766)
This changes enables structured json logs and also writes to `stdout` rather than the default `stderr`. Co-authored-by: Bevan Arps <bevan.arps@microsoft.com>
This commit is contained in:
Родитель
316f0f7baf
Коммит
2998f533f7
4
main.go
4
main.go
|
@ -77,9 +77,7 @@ func main() {
|
|||
|
||||
flag.Parse()
|
||||
|
||||
ctrl.SetLogger(zap.New(func(o *zap.Options) {
|
||||
o.Development = true
|
||||
}))
|
||||
ctrl.SetLogger(zap.New(zap.UseDevMode(false), zap.WriteTo(os.Stdout)))
|
||||
|
||||
err := resourcemanagerconfig.ParseEnvironment()
|
||||
if err != nil {
|
||||
|
|
Загрузка…
Ссылка в новой задаче