mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
Since 3948cb8d1b (diff-465167b08358906be13f9641d4798c6e8ad0790395e045af8ace4d08223fa922R78)
the klog verbosity level gets always overriden.
29 lines
833 B
Go
29 lines
833 B
Go
/*
|
|
Copyright 2021 The Kubernetes Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package register
|
|
|
|
import (
|
|
"k8s.io/component-base/logs"
|
|
json "k8s.io/component-base/logs/json"
|
|
"k8s.io/component-base/logs/registry"
|
|
)
|
|
|
|
func init() {
|
|
// JSON format is optional klog format
|
|
registry.LogRegistry.Register(logs.JSONLogFormat, json.Factory{})
|
|
}
|