- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for splitComponentLog (1.33 sec)
-
pkg/envoy/proxy.go
} return &envoy{ ProxyConfig: cfg, extraArgs: args, } } // splitComponentLog breaks down an argument string into a log level (ie "info") and component log levels (ie "misc:error"). // This allows using a single log level API, with the same semantics as Istio's logging, to configure Envoy which // has two different settings func splitComponentLog(level string) (string, []string) { levels := strings.Split(level, ",")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 05 10:02:56 UTC 2024 - 6.9K bytes - Viewed (0) -
pkg/envoy/proxy_test.go
{"misc:warn,info", "info", []string{"misc:warn"}}, {"misc:warn,info,upstream:debug", "info", []string{"misc:warn", "upstream:debug"}}, } for _, tt := range cases { t.Run(tt.input, func(t *testing.T) { l, c := splitComponentLog(tt.input) if l != tt.log { t.Errorf("expected log level %v, got %v", tt.log, l) } if !reflect.DeepEqual(c, tt.components) { t.Errorf("expected component log level %v, got %v", tt.components, c)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 09 11:45:51 UTC 2024 - 3.2K bytes - Viewed (0)