INNER CODE UNIT · Go
main
kubermatic/kubermatic · cmd/conformance-tester/main.go:56
func main() {
rootCtx := signals.SetupSignalHandler()
// setup flags
opts := types.NewDefaultOptions()
opts.AddFlags()
logOpts := kubermaticlog.NewDefaultOptions()
logOpts.AddFlags(flag.CommandLine)
flag.Parse()
// setup logging
rawLog := kubermaticlog.New(logOpts.Debug, logOpts.Format)
log := rawLog.Sugar()
// set the logger used by sigs.k8s.io/controller-runtime
ctrlruntimelog.SetLogger(zapr.NewLogger(rawLog.WithOptions(zap.AddCallerSkip(1))))