mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
add loggingConfig struct to kubelet config
This commit is contained in:
@@ -405,8 +405,8 @@ func UnsecuredDependencies(s *options.KubeletServer, featureGate featuregate.Fea
|
||||
// not be generated.
|
||||
func Run(s *options.KubeletServer, kubeDeps *kubelet.Dependencies, featureGate featuregate.FeatureGate, stopCh <-chan struct{}) error {
|
||||
logOption := logs.NewOptions()
|
||||
if s.LogFormat != "" {
|
||||
logOption.LogFormat = s.LogFormat
|
||||
if s.LoggingConfig.LoggingFormat != "" {
|
||||
logOption.LogFormat = s.LoggingConfig.LoggingFormat
|
||||
}
|
||||
logOption.Apply()
|
||||
// To help debugging, immediately log version
|
||||
|
||||
Reference in New Issue
Block a user