INNER CODE UNIT · Go

getLogLevel

SeldonIO/seldon-core · operator/main.go:57

func getLogLevel(l string) zap2.AtomicLevel {
	level, err := zap2.ParseAtomicLevel(strings.ToLower(l))
	if err != nil {
		level = zap2.NewAtomicLevelAt(zapcore.DebugLevel)
	}
	return level
}

func getWatchNamespaceConfig(namespace, watchNamespaces string, clusterwide bool) map[string]cache.Config {
	configs := make(map[string]cache.Config)

	if !clusterwide {
		setupLog.Info("Watching namespace", "namespace", namespace)
		configs[namespace] = cache.Config{}
		return configs
	}

	if watchNamespaces == "" {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…